Exemplo n.º 1
0
 public WeihuaGames.ClientClass.TurnRecord FromProtobuf(com.kodgames.corgi.protocol.TurnRecord turnRecord)
 {
     this.avatarIndex = turnRecord.avatarIndex;
     foreach (com.kodgames.corgi.protocol.ActionRecord record in turnRecord.actionRecords)
     {
         this.actionRecords.Add(new WeihuaGames.ClientClass.ActionRecord().FromProtobuf(record));
     }
     return(this);
 }
Exemplo n.º 2
0
 public com.kodgames.corgi.protocol.TurnRecord ToProtobuf()
 {
     com.kodgames.corgi.protocol.TurnRecord record = new com.kodgames.corgi.protocol.TurnRecord {
         avatarIndex = this.avatarIndex
     };
     foreach (WeihuaGames.ClientClass.ActionRecord record2 in this.actionRecords)
     {
         record.actionRecords.Add(record2.ToProtobuf());
     }
     return(record);
 }