gamesavedata.java
来自「J2ME的游戏原代码!希望能帮助有需要帮助的师兄弟们!」· Java 代码 · 共 32 行
JAVA
32 行
package javagapi;import java.io.DataOutputStream;import java.io.DataInputStream;import java.io.IOException;/** Those classes in a game that will be saved by GameShell.GASaveNVData * and loaded by GALoadNVData must implement this interface. */interface GameSaveable { /** Writes all the data in the implementing object to a * DataOutputStream. * * @param dos the DataOutputStram to be written to. * * @returns true if the operation was successful, * false otherwise. */ public void serialize(DataOutputStream dos) throws IOException; /** Loads all the data from a DataInputStream into the * implementing object. * * @param dos the DataOutputStram to be written to. * * @returns true if the operation was successful, * false otherwise. */ public void unSerialize(DataInputStream dis) throws IOException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?