📄 gamesavedata.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -