Skip to content

Commit

Permalink
app.samples: de-publicize more RestoreState() and SaveState()
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 20, 2025
1 parent ebf4ccf commit c68c169
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/test/java/testjoltjni/app/samples/vehicle/TankTest.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 @@ -325,12 +325,12 @@ public void PrePhysicsUpdate(PreUpdateParams inParams)
}
}

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

public void RestoreState(StateRecorder inStream)
protected void RestoreState(StateRecorder inStream)
{
mReloadTime=inStream.readFloat(mReloadTime);
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/testjoltjni/app/samples/water/BoatTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,13 @@ void RestoreInputState(StateRecorder inStream)
mRight=inStream.readFloat(mRight);
}

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

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

0 comments on commit c68c169

Please sign in to comment.