Exemplo n.º 1
0
        public Village2AttackEntry RemoveAttackEntry()
        {
            Village2AttackEntry tmp = this.m_attackEntry;

            this.m_attackEntry = null;
            return(tmp);
        }
Exemplo n.º 2
0
        public override void Decode()
        {
            base.Decode();

            this.m_attackEntry = Village2AttackEntryFactory.CreateAttackEntryByType(this.m_stream.ReadInt());
            this.m_attackEntry?.Decode(this.m_stream);
        }
Exemplo n.º 3
0
        public override void Decode()
        {
            base.Decode();

            this.m_targetList = this.m_stream.ReadBoolean();
            int cnt = this.m_stream.ReadInt();

            if (cnt != -1)
            {
                this.m_attackEntryList = new LogicArrayList <Village2AttackEntry>(cnt);

                for (int i = 0; i < cnt; i++)
                {
                    Village2AttackEntry entry = Village2AttackEntryFactory.CreateAttackEntryByType(this.m_stream.ReadInt());
                    entry.Decode(this.m_stream);
                    this.m_attackEntryList.Add(entry);
                }
            }
        }
Exemplo n.º 4
0
 public void SetAttackEntry(Village2AttackEntry entry)
 {
     this.m_attackEntry = entry;
 }
Exemplo n.º 5
0
 public override void Destruct()
 {
     base.Destruct();
     this.m_attackEntry = null;
 }