Exemplo n.º 1
0
 public override bool unMarshal(BytesStream stream)
 {
     uid     = stream.ReadUInt64();
     frameId = stream.ReadByte();
     roleId  = stream.ReadUInt16();
     team    = stream.ReadByte();
     name    = stream.ReadString();
     ai      = stream.ReadBoolean();
     return(true);
 }
Exemplo n.º 2
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     beginFrame          = stream.ReadUInt32();
     endFrame            = stream.ReadUInt32();
     replayTime          = stream.ReadByte();
     goalDoor            = (Location)stream.ReadByte();
     positionRandomValue = stream.ReadSingle();
     shootRandomValue    = stream.ReadSingle();
     goalRandomValue     = stream.ReadSingle();
     goaler    = stream.ReadUInt64();
     blueScore = stream.ReadUInt16();
     redScore  = stream.ReadUInt16();
     goalTime  = stream.ReadUInt16();
     goalTeam  = (FBTeam)stream.ReadByte();
 }
Exemplo n.º 3
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     point         = stream.readVector3();
     normal        = stream.readVector3();
     velocity      = stream.readVector3();
     kickerElement = (FiveElements)stream.ReadByte();
 }
Exemplo n.º 4
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     point             = stream.readVector2();
     pass              = stream.ReadBoolean();
     times             = stream.ReadByte();
     velocity          = stream.readVector3();
     preHeightVelocity = stream.ReadSingle();
 }
Exemplo n.º 5
0
    public override bool unMarshal(BytesStream stream)
    {
        frameNum = stream.ReadUInt16();
        uint count = stream.ReadByte();

        for (uint i = 0; i < count; ++i)
        {
            ServerFrameInputEvent evt = new ServerFrameInputEvent();
            evt.unMarshal(stream);
            events.Add(evt);
        }
        return(true);
    }
Exemplo n.º 6
0
        public override void unserialize(BytesStream stream)
        {
            base.unserialize(stream);
            team     = (FBTeam)stream.ReadByte();
            position = stream.readVector2();
            height   = stream.ReadSingle();
            for (int i = 0; i < runAnimiationNormalSpeeds.Length; ++i)
            {
                runAnimiationNormalSpeeds[i] = stream.ReadSingle();
            }

            //avatar相关 begin
            avatarName = stream.ReadString();
            for (int i = 0; i < maxAvatarPartNum; i++)
            {
                avatarPart.Add(stream.ReadString(), stream.ReadString());
            }
            //avatar相关 end

            gk      = stream.ReadBoolean();
            name    = stream.ReadString();
            element = (FiveElements)stream.ReadByte();
            roleId  = stream.ReadUInt32();
        }
Exemplo n.º 7
0
    public override bool unMarshal(BytesStream stream)
    {
        tableId = stream.ReadUInt64();
        mapId   = stream.ReadUInt32();
        var playerCount = stream.ReadByte();

        while (stream.Pos < stream.Buf.Length - 1 && allPlayerInfos.Count < playerCount)
        {
            PlayerInfo evt = new PlayerInfo();
            evt.unMarshal(stream);
            allPlayerInfos.Add(evt);
        }

        return(true);
    }
Exemplo n.º 8
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     team = (FBTeam)stream.ReadByte();
 }
Exemplo n.º 9
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     zoneIndex = stream.ReadByte();
     rightSide = stream.ReadBoolean();
 }
Exemplo n.º 10
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     catchingType = stream.ReadByte();
 }
Exemplo n.º 11
0
 public override bool unMarshal(BytesStream stream)
 {
     _objectID = stream.ReadByte();
     base.unMarshal(stream);
     return(true);
 }
Exemplo n.º 12
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     time = stream.ReadByte();
 }
Exemplo n.º 13
0
 public override void unserialize(BytesStream stream)
 {
     base.unserialize(stream);
     oldLV = stream.ReadByte();
     newLV = stream.ReadByte();
 }