コード例 #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;
        }
コード例 #2
0
        public unsafe override void ReadFrom(ref byte* Buffer)
        {
            base.ReadFrom(ref Buffer);

            Message = new ObjectChatMessage(StringResources, ref Buffer);
        }
コード例 #3
0
 public SaidMessage(ObjectChatMessage Message, LockingDictionary<uint, string> LookupList)
     : base(MessageTypeGameMode.Said)
 {
     this.StringResources = LookupList;
     this.Message = Message;
 }