예제 #1
0
    public byte[] Serialize()
    {
        List <byte> list = new List <byte>();

        list.AddRange(ByteSerializer.SerializeString(this.username));
        list.AddRange(ByteSerializer.SerializeVector3(this.position));
        list.AddRange(ByteSerializer.SerializeInt((int)this.pointerMode));
        list.AddRange(ByteSerializer.SerializeColor(this.pointerColor));
        return(list.ToArray());
    }