Exemple #1
0
 public override byte[] marshal(BytesStream stream)
 {
     stream.Write(uid);
     stream.Write(frameId);
     stream.Write(roleId);
     stream.Write(team);
     stream.WriteStringByte(name);
     stream.Write(ai);
     return(stream.GetUsedBytes());
 }
Exemple #2
0
    public override byte[] marshal(BytesStream stream)
    {
        stream.Write((ushort)allFrameMessages.Count);

        for (int i = 0; i < allFrameMessages.Count; ++i)
        {
            allFrameMessages[i].marshal(stream);
        }

        return(stream.GetUsedBytes());
    }
Exemple #3
0
    public override byte[] marshal(BytesStream stream)
    {
        stream.Write(frameNum);
        byte count = (byte)events.Count;

        stream.Write(count);
        for (int i = 0; i < events.Count; ++i)
        {
            events[i].marshal(stream);
        }

        return(stream.GetUsedBytes());
    }
Exemple #4
0
    public override byte[] marshal(BytesStream stream)
    {
        stream.Write(tableId);
        stream.Write(mapId);
        stream.Write((byte)allPlayerInfos.Count);

        for (int i = 0; i < allPlayerInfos.Count; ++i)
        {
            allPlayerInfos[i].marshal(stream);
        }

        return(stream.GetUsedBytes());
    }
Exemple #5
0
 public override byte[] marshal(BytesStream stream)
 {
     stream.Write(_objectID);
     base.marshal(stream);
     return(stream.GetUsedBytes());
 }
Exemple #6
0
 public override byte[] marshal(BytesStream stream)
 {
     stream.Write(stamp);
     return(stream.GetUsedBytes());
 }
Exemple #7
0
 public override byte[] marshal(BytesStream stream)
 {
     return(stream.GetUsedBytes());
 }
Exemple #8
0
 public override byte[] marshal(BytesStream stream)
 {
     stream.Write(angle);
     stream.Write(keys);
     return(stream.GetUsedBytes());
 }