Ejemplo n.º 1
0
 public WeihuaGames.ClientClass.CombatRecord FromProtobuf(com.kodgames.corgi.protocol.CombatRecord combatRecord)
 {
     foreach (com.kodgames.corgi.protocol.RoundRecord record in combatRecord.roundRecords)
     {
         this.roundRecords.Add(new WeihuaGames.ClientClass.RoundRecord().FromProtobuf(record));
     }
     return(this);
 }
Ejemplo n.º 2
0
 public com.kodgames.corgi.protocol.CombatRecord ToProtobuf()
 {
     com.kodgames.corgi.protocol.CombatRecord record = new com.kodgames.corgi.protocol.CombatRecord();
     foreach (WeihuaGames.ClientClass.RoundRecord record2 in this.roundRecords)
     {
         record.roundRecords.Add(record2.ToProtobuf());
     }
     return(record);
 }