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

            this.m_attackEntry = null;
            return(tmp);
        }
Esempio 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);
        }
Esempio 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);
                }
            }
        }
Esempio n. 4
0
 public void SetAttackEntry(Village2AttackEntry entry)
 {
     this.m_attackEntry = entry;
 }
Esempio n. 5
0
 public override void Destruct()
 {
     base.Destruct();
     this.m_attackEntry = null;
 }