Ejemplo n.º 1
0
 public void MergeFrom(CombatResults other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CurrentStateIndex != 0L)
     {
         CurrentStateIndex = other.CurrentStateIndex;
     }
     if (other.CurrentCrit != false)
     {
         CurrentCrit = other.CurrentCrit;
     }
     if (other.NextStateIndex != 0L)
     {
         NextStateIndex = other.NextStateIndex;
     }
     if (other.NextCrit != false)
     {
         NextCrit = other.NextCrit;
     }
     if (other.HpCurrentEnemy != 0L)
     {
         HpCurrentEnemy = other.HpCurrentEnemy;
     }
     if (other.HpCurrentPlayer != 0L)
     {
         HpCurrentPlayer = other.HpCurrentPlayer;
     }
     if (other.Level != 0)
     {
         Level = other.Level;
     }
     if (other.EnemyDodges != false)
     {
         EnemyDodges = other.EnemyDodges;
     }
     if (other.PlayerDodges != false)
     {
         PlayerDodges = other.PlayerDodges;
     }
     if (other.EnergyCost != 0L)
     {
         EnergyCost = other.EnergyCost;
     }
     if (other.InitialHpCurrentPlayer != 0L)
     {
         InitialHpCurrentPlayer = other.InitialHpCurrentPlayer;
     }
     if (other.tempClientStatsHelper_ != null)
     {
         if (tempClientStatsHelper_ == null)
         {
             TempClientStatsHelper = new global::WUProtos.Data.TempClientStatsHelper();
         }
         TempClientStatsHelper.MergeFrom(other.TempClientStatsHelper);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    CurrentStateIndex = input.ReadInt64();
                    break;
                }

                case 16: {
                    CurrentCrit = input.ReadBool();
                    break;
                }

                case 24: {
                    NextStateIndex = input.ReadInt64();
                    break;
                }

                case 32: {
                    NextCrit = input.ReadBool();
                    break;
                }

                case 40: {
                    HpCurrentEnemy = input.ReadInt64();
                    break;
                }

                case 48: {
                    HpCurrentPlayer = input.ReadInt64();
                    break;
                }

                case 56: {
                    Level = input.ReadInt32();
                    break;
                }

                case 64: {
                    EnemyDodges = input.ReadBool();
                    break;
                }

                case 72: {
                    PlayerDodges = input.ReadBool();
                    break;
                }

                case 80: {
                    EnergyCost = input.ReadInt64();
                    break;
                }

                case 88: {
                    InitialHpCurrentPlayer = input.ReadInt64();
                    break;
                }

                case 802: {
                    if (tempClientStatsHelper_ == null)
                    {
                        TempClientStatsHelper = new global::WUProtos.Data.TempClientStatsHelper();
                    }
                    input.ReadMessage(TempClientStatsHelper);
                    break;
                }
                }
            }
        }