Example #1
0
        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);
        }
Example #2
0
 public SaidMessage(ObjectChatMessage Message, LockingDictionary <uint, string> LookupList)
     : base(MessageTypeGameMode.Said)
 {
     this.StringResources = LookupList;
     this.Message         = Message;
 }
Example #3
0
        public override unsafe void ReadFrom(ref byte *Buffer)
        {
            base.ReadFrom(ref Buffer);

            Message = new ObjectChatMessage(StringResources, ref Buffer);
        }