public override void Decode() { base.Decode(); this.m_attackEntry = Village2AttackEntryFactory.CreateAttackEntryByType(this.m_stream.ReadInt()); this.m_attackEntry?.Decode(this.m_stream); }
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); } } }