Esempio n. 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;
        }
        public unsafe override void ReadFrom(ref byte* Buffer)
        {
            base.ReadFrom(ref Buffer);

            Message = new ObjectChatMessage(StringResources, ref Buffer);
        }
 public SaidMessage(ObjectChatMessage Message, LockingDictionary<uint, string> LookupList)
     : base(MessageTypeGameMode.Said)
 {
     this.StringResources = LookupList;
     this.Message = Message;
 }