void IProtocolToken.Read(UdpPacket packet)
 {
     this.p1      = packet.ReadVector3();
     this.p2      = packet.ReadVector3();
     this.treeId  = packet.ReadInt();
     this.treeId2 = packet.ReadInt();
 }
Beispiel #2
0
 public void Read(UdpPacket packet)
 {
     ID          = (WeaponID)packet.ReadInt();
     currentAmmo = packet.ReadInt();
     totalAmmo   = packet.ReadInt();
     networkId   = new NetworkId(packet.ReadULong());
 }
 public void Read(UdpPacket packet)
 {
     _entityID = packet.ReadNetworkId();
     _width    = packet.ReadInt();
     _height   = packet.ReadInt();
     _format   = packet.ReadInt();
 }
Beispiel #4
0
            public override void Read(UdpPacket packet)
            {
                base.Read(packet);

                DeathState      = (DeathState)packet.ReadInt();
                FactionId       = packet.ReadInt();
                ModelId         = packet.ReadInt();
                OriginalModelId = packet.ReadInt();
                FreeForAll      = packet.ReadBool();
                Scale           = packet.ReadFloat();
            }
Beispiel #5
0
 public void Read(UdpPacket packet)
 {
     UserName    = packet.ReadString();
     DisplayName = packet.ReadString();
     IP          = packet.ReadString();
     AuthLevel   = packet.ReadInt();
 }
            public override void Read(UdpPacket packet)
            {
                base.Read(packet);

                CustomName     = packet.ReadString();
                CreatureInfoId = packet.ReadInt();
            }
    public void Read(UdpPacket packet)
    {
        int ticketLength = packet.ReadInt();

        ticket  = packet.ReadByteArray(ticketLength);
        steamid = packet.ReadULong();
    }
Beispiel #8
0
 public void Read(UdpPacket packet)
 {
     ServerName     = packet.ReadString();
     Version        = packet.ReadString();
     GameMode       = packet.ReadString();
     MapName        = packet.ReadString();
     Public         = packet.ReadBool();
     GameStarted    = packet.ReadBool();
     CanBeJoined    = packet.ReadBool();
     MaxPlayers     = packet.ReadInt();
     CurrentPlayers = packet.ReadInt();
     PlayersNicknames.Clear();
     for (int i = 0; i < CurrentPlayers; i++)
     {
         PlayersNicknames.Add(packet.ReadString());
     }
 }
Beispiel #9
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Parent     = packet.ReadBoltEntity();
     this.Architects = new CoopConstructionExToken.ArchitectData[packet.ReadInt()];
     for (int i = 0; i < this.Architects.Length; i++)
     {
         this.Architects[i].PointsCount     = packet.ReadInt();
         this.Architects[i].PointsPositions = new Vector3[packet.ReadInt()];
         this.Architects[i].CustomToken     = packet.ReadToken();
         this.Architects[i].AboveGround     = packet.ReadBool();
         this.Architects[i].Support         = packet.ReadBoltEntity();
         for (int j = 0; j < this.Architects[i].PointsPositions.Length; j++)
         {
             this.Architects[i].PointsPositions[j] = packet.ReadVector3();
         }
     }
 }
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Scale = packet.ReadVector3();
     this.HipPosition = packet.ReadVector3();
     this.HipRotation = packet.ReadQuaternion();
     this.MaterialIndex = packet.ReadInt();
     this.skinDamage1 = packet.ReadFloat();
     this.skinDamage2 = packet.ReadFloat();
     this.skinDamage3 = packet.ReadFloat();
     this.skinDamage4 = packet.ReadFloat();
     this.storedRagDollName = packet.ReadInt();
     if (packet.ReadBool())
     {
         this.OriginalMutant = packet.ReadBoltEntity();
     }
     this.Skinny = packet.ReadBool();
     this.Props = packet.ReadInt();
 }
Beispiel #11
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Scale             = packet.ReadVector3();
     this.HipPosition       = packet.ReadVector3();
     this.HipRotation       = packet.ReadQuaternion();
     this.MaterialIndex     = packet.ReadInt();
     this.skinDamage1       = packet.ReadFloat();
     this.skinDamage2       = packet.ReadFloat();
     this.skinDamage3       = packet.ReadFloat();
     this.skinDamage4       = packet.ReadFloat();
     this.storedRagDollName = packet.ReadInt();
     if (packet.ReadBool())
     {
         this.OriginalMutant = packet.ReadBoltEntity();
     }
     this.Skinny = packet.ReadBool();
     this.Props  = packet.ReadInt();
 }
Beispiel #12
0
    void IProtocolToken.Read(UdpPacket packet)
    {
        this.Parent    = packet.ReadBoltEntity();
        this.P1        = packet.ReadVector3();
        this.P2        = packet.ReadVector3();
        this.Support   = packet.ReadBoltEntity();
        this.Additions = (WallChunkArchitect.Additions)packet.ReadInt();
        int num = packet.ReadInt();

        if (num > 0)
        {
            this.PointsPositions = new Vector3[num];
            for (int i = 0; i < num; i++)
            {
                this.PointsPositions[i] = packet.ReadVector3();
            }
        }
    }
Beispiel #13
0
 public void Read(UdpPacket packet)
 {
     this.Parent = packet.ReadBoltEntity();
     for (int i = 0; i < this.Anchors.Length; i++)
     {
         this.Anchors[i].Entity = packet.ReadBoltEntity();
         this.Anchors[i].Index  = packet.ReadInt();
     }
 }
Beispiel #14
0
    void IProtocolToken.Read(UdpPacket packet)
    {
        int num = packet.ReadInt();

        if (this.Views == null)
        {
            this.Views = new List <UpgradeViewReceiver.UpgradeViewData>();
        }
        else
        {
            this.Views.Clear();
        }
        for (int i = 0; i < num; i++)
        {
            UpgradeViewReceiver.UpgradeViewData upgradeViewData = new UpgradeViewReceiver.UpgradeViewData();
            upgradeViewData.ItemId   = packet.ReadInt();
            upgradeViewData.Position = packet.ReadVector3();
            upgradeViewData.Rotation = packet.ReadQuaternion();
            this.Views.Add(upgradeViewData);
        }
    }
Beispiel #15
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Parent = packet.ReadBoltEntity();
     if (packet.ReadBool())
     {
         this.Holes = new Hole[packet.ReadInt()];
         for (int i = 0; i < this.Holes.Length; i++)
         {
             this.Holes[i]._position = packet.ReadVector3();
             this.Holes[i]._size     = packet.ReadVector2();
         }
     }
 }
Beispiel #16
0
 public void Read(UdpPacket packet)
 {
     try
     {
         Name           = packet.ReadString();
         UnityId        = packet.ReadString();
         Version        = packet.ReadString();
         PrefferedClass = (ClassType)packet.ReadInt();
     }
     catch (Exception)
     {
         IsValid = false;
     }
 }
Beispiel #17
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Parent = packet.ReadBoltEntity();
     this.Height = packet.ReadFloat();
     this.Support = packet.ReadBoltEntity();
     if (packet.ReadBool())
     {
         this.Holes = new Hole[packet.ReadInt()];
         for (int i = 0; i < this.Holes.Length; i++)
         {
             this.Holes[i]._position = packet.ReadVector3();
             this.Holes[i]._size = packet.ReadVector2();
         }
     }
 }
 public void Read(UdpPacket packet)
 {
     this.AdminPassword  = packet.ReadString();
     this.ServerPassword = packet.ReadString();
     if (packet.CanRead())
     {
         int num = packet.ReadInt();
         if (num > 0)
         {
             this.steamBlobToken = new byte[num];
             for (int i = 0; i < this.steamBlobToken.Length; i++)
             {
                 this.steamBlobToken[i] = packet.ReadByte();
             }
         }
     }
 }
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.ChunkIndex = packet.ReadInt();
 }
 public void Read(UdpPacket packet)
 {
     Reason = (ConnectRefusedReason)packet.ReadInt();
 }
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.ChunkIndex = packet.ReadInt();
 }
 public void Read(UdpPacket packet)
 {
     playerName   = packet.ReadString();
     playerNumber = packet.ReadInt();
     playerColor  = packet.ReadColorRGB();
 }
 public void Read(UdpPacket packet)
 {
     data        = packet.ReadString();
     playerIndex = packet.ReadInt();
 }
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Anchor = packet.ReadBoltEntity();
     this.Index  = packet.ReadInt();
 }
 public void Read(UdpPacket packet)
 {
     intVal = packet.ReadInt();
 }
 public void Read(UdpPacket packet)
 {
     onlineIndex = packet.ReadInt();
 }
Beispiel #27
0
            public override void Read(UdpPacket packet)
            {
                base.Read(packet);

                VisualEffectFlags = (UnitVisualEffectFlags)packet.ReadInt();
                DisplayPowerType  = (SpellPowerType)packet.ReadInt();
                DeathState        = (DeathState)packet.ReadInt();
                EmoteType         = (EmoteType)packet.ReadInt();
                ClassType         = (ClassType)packet.ReadInt();
                FactionId         = packet.ReadInt();
                ModelId           = packet.ReadInt();
                OriginalModelId   = packet.ReadInt();
                OriginalAIInfoId  = packet.ReadInt();
                DisplayPower      = packet.ReadInt();
                DisplayPowerMax   = packet.ReadInt();
                FreeForAll        = packet.ReadBool();
                Scale             = packet.ReadFloat();
            }
 public void Read(UdpPacket packet)
 {
     levelName       = packet.ReadString();
     playersInGame   = packet.ReadInt();
     messageOfTheDay = packet.ReadString();
 }
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Anchor = packet.ReadBoltEntity();
     this.Index = packet.ReadInt();
 }
Beispiel #30
0
 public void Read(UdpPacket packet)
 {
     RoomInfo     = packet.ReadString();
     Gamemode     = packet.ReadString();
     PlayersCount = packet.ReadInt();
 }
Beispiel #31
0
 public void Read(UdpPacket packet)
 {
     DisplayName = packet.ReadString();
     PlayerID    = packet.ReadInt();
 }