Esempio n. 1
0
 public WeihuaGames.ClientClass.EventRecord FromProtobuf(com.kodgames.corgi.protocol.EventRecord eventRecord)
 {
     this.eventIndex = eventRecord.eventIdx;
     foreach (com.kodgames.corgi.protocol.EventTargetRecord record in eventRecord.eventTargetRecords)
     {
         this.eventTargetRecords.Add(new WeihuaGames.ClientClass.EventTargetRecord().FromProtobuf(record));
     }
     return(this);
 }
Esempio n. 2
0
 public com.kodgames.corgi.protocol.EventRecord ToProtobuf()
 {
     com.kodgames.corgi.protocol.EventRecord record = new com.kodgames.corgi.protocol.EventRecord {
         eventIdx = this.eventIndex
     };
     foreach (WeihuaGames.ClientClass.EventTargetRecord record2 in this.eventTargetRecords)
     {
         record.eventTargetRecords.Add(record2.ToProtobuf());
     }
     return(record);
 }