public void copyFrom(t_hero rhv) { this.occupation = rhv.occupation; this.level = rhv.level; this.exp = rhv.exp; this.isActive = rhv.isActive; this.isGold = rhv.isGold; }
public override void derialize(ByteBuffer bu) { base.derialize(bu); bu.readUnsignedInt16(ref count); if (count > 0) { int idx = 0; info = new List <t_hero>(); t_hero item; while (idx < count) { item = new t_hero(); info.Add(item); item.derialize(bu); ++idx; } } }