public override int WriteTo(byte[] Buffer, int StartIndex = 0)
        {
            int cursor = StartIndex;

            cursor += base.WriteTo(Buffer, cursor);

            cursor += TextureChangeInfo.WriteTo(Buffer, cursor);

            return(cursor - StartIndex);
        }
        public override int ReadFrom(byte[] Buffer, int StartIndex = 0)
        {
            int cursor = StartIndex;

            cursor += base.ReadFrom(Buffer, cursor);

            TextureChangeInfo = new TextureChangeInfo(Buffer, cursor);
            cursor           += TextureChangeInfo.ByteLength;

            return(cursor - StartIndex);
        }
 public ChangeTextureMessage(TextureChangeInfo TextureChangeInfo)
     : base(MessageTypeGameMode.ChangeTexture)
 {
     this.TextureChangeInfo = TextureChangeInfo;
 }