Skip to content

Commit

Permalink
app.samples: de-publicize RestoreState() and SaveState()
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 19, 2025
1 parent e0d4a80 commit 1c400d1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ public void PrePhysicsUpdate( PreUpdateParams inParams)
UpdateShapes();
}

public void SaveState(StateRecorder inStream)
protected void SaveState(StateRecorder inStream)
{
inStream.write(mTime);
}

public void RestoreState(StateRecorder inStream)
protected void RestoreState(StateRecorder inStream)
{
mTime=inStream.readFloat(mTime);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024 Stephen Gold
Copyright (c) 2024-2025 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -121,12 +121,12 @@ public void PrePhysicsUpdate(PreUpdateParams inParams)
}
*/

public void SaveState(StateRecorder inStream)
protected void SaveState(StateRecorder inStream)
{
inStream.write(mTime);
}

public void RestoreState(StateRecorder inStream)
protected void RestoreState(StateRecorder inStream)
{
mTime=inStream.readFloat(mTime);
}
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/testjoltjni/app/samples/rig/PoweredRigTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024 Stephen Gold
Copyright (c) 2024-2025 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -115,12 +115,12 @@ public void PrePhysicsUpdate(PreUpdateParams inParams)
});
}*/

public void SaveState(StateRecorder inStream)
protected void SaveState(StateRecorder inStream)
{
inStream.write(mTime);
}

public void RestoreState(StateRecorder inStream)
protected void RestoreState(StateRecorder inStream)
{
mTime=inStream.readFloat(mTime);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ public void PrePhysicsUpdate(PreUpdateParams inParams)
}
*/

public void SaveState(StateRecorder inStream)
protected void SaveState(StateRecorder inStream)
{
inStream.write(mTime);
}

public void RestoreState(StateRecorder inStream)
protected void RestoreState(StateRecorder inStream)
{
mTime=inStream.readFloat(mTime);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ else if (roll < 0.002f && count < 10)
}
}

public void SaveState(StateRecorder inStream)
protected void SaveState(StateRecorder inStream)
{
inStream.write(mFrameNumber);

Expand All @@ -154,7 +154,7 @@ public void SaveState(StateRecorder inStream)
}
}

public void RestoreState(StateRecorder inStream)
protected void RestoreState(StateRecorder inStream)
{
mFrameNumber=inStream.readInt(mFrameNumber);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ public void PrePhysicsUpdate( PreUpdateParams inParams)
DebugRenderer.sInstance().drawArrow(offset, plus(offset ,star( 10.0f , force.normalized())), Color.sGreen, 0.1f);
}

public void SaveState(StateRecorder inStream)
protected void SaveState(StateRecorder inStream)
{
inStream.write(mTime);
}

public void RestoreState(StateRecorder inStream)
protected void RestoreState(StateRecorder inStream)
{
mTime=inStream.readFloat(mTime);
}
Expand Down

0 comments on commit 1c400d1

Please sign in to comment.