Package com.offbynull.coroutines.user
Interface SerializedState.FrameModifier
- Enclosing class:
SerializedState
public static interface SerializedState.FrameModifier
Frame modifier.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionmodifyFrame
(SerializedState.Frame frame, int mode) Called when a frame needs to be modified.
-
Field Details
-
READ
static final int READIdentifies that frame is being loaded.- See Also:
-
WRITE
static final int WRITEIdentifies that frame is being saved.- See Also:
-
-
Method Details
-
modifyFrame
Called when a frame needs to be modified.- Parameters:
frame
- frame to modifymode
- eitherREAD
orWRITE
- Returns:
- modified frame (copy)
- Throws:
NullPointerException
- if any argument isnull
IllegalArgumentException
- ifmode != LOAD && mode != SAVE
-