public EntityAOIS() { for (int i = 0; i < 128; i++) { aoi_data.Add(new FixedLengthArray <byte>(2048)); } }
public void UnMarshal(MMStream stream) { id = stream.ReadUInt64(); linkTarget = stream.ReadUInt64(); var linkLength = stream.ReadByte(); if (linkLength <= linkers.totalLength) { linkers.Clear(); } else { linkers = new FixedLengthArray <ulong>(linkLength); } for (int i = 0; i < linkLength; i++) { linkers.Add(stream.ReadUInt64()); } commTarget = stream.ReadUInt64(); var commLength = stream.ReadByte(); if (commLength <= commers.totalLength) { commers.Clear(); } else { commers = new FixedLengthArray <ulong>(commLength); } for (int i = 0; i < commLength; i++) { commers.Add(stream.ReadUInt64()); } }
public void UnMarshal(MMStream stream) { num = stream.ReadUInt32(); eids.Clear(); eds.SetUsedLength((int)num); for (int i = 0; i < num; i++) { eids.Add(stream.ReadUInt64()); //int blen = stream.ReadUInt16(); var edsbytearr = eds.getArray()[i]; if (edsbytearr == null) { eds.getArray()[i] = new FixedLengthArray <byte>(2048); edsbytearr = eds.getArray()[i]; } stream.ReadFixByteArray(ref edsbytearr); } }