public GameActionMark(int markAuthorId, int markSpellId, short markId, sbyte markType, GameActionMarkedCell[] cells) { MarkAuthorId = markAuthorId; MarkSpellId = markSpellId; MarkId = markId; MarkType = markType; Cells = cells; }
public virtual void Deserialize(BigEndianReader reader) { MarkAuthorId = reader.ReadInt(); MarkSpellId = reader.ReadInt(); MarkId = reader.ReadShort(); MarkType = reader.ReadSByte(); var limit = reader.ReadUShort(); Cells = new GameActionMarkedCell[limit]; for (int i = 0; i < limit; i++) { Cells[i] = new GameActionMarkedCell(); Cells[i].Deserialize(reader); } }