public override int ReadFrom(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; cursor += base.ReadFrom(Buffer, cursor); Message = new ObjectChatMessage(StringResources, Buffer, cursor); cursor += Message.ByteLength; return(cursor - StartIndex); }
public SaidMessage(ObjectChatMessage Message, LockingDictionary <uint, string> LookupList) : base(MessageTypeGameMode.Said) { this.StringResources = LookupList; this.Message = Message; }
public override unsafe void ReadFrom(ref byte *Buffer) { base.ReadFrom(ref Buffer); Message = new ObjectChatMessage(StringResources, ref Buffer); }