예제 #1
0
 public void WriteToByteArray(ByteArray byteArray)
 {
     BattleTerrainHelper.WriteToByteArray(byteArray, this.Terrain);
     BattleModeHelper.WriteToByteArray(byteArray, this.Mode);
     byteArray.WriteUTF(this.Caption);
     byteArray.WriteUTF(this.CustomDataHash);
 }
예제 #2
0
 public void ReadFromByteArray(ByteArray byteArray)
 {
     this.Terrain        = BattleTerrainHelper.ReadFromByteArray(byteArray);
     this.Mode           = BattleModeHelper.ReadFromByteArray(byteArray);
     this.Caption        = byteArray.ReadUTF();
     this.CustomDataHash = byteArray.ReadUTF();
 }