public override void Read(UdpPacket packet) { hitPosition.x = packet.ReadFloat(); hitPosition.y = packet.ReadFloat(); hitPosition.z = packet.ReadFloat(); hitType = packet.ReadBool(); }
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()); } }
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(); }
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(); }
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(); } } }
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(); } } }
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(); } } }
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(); }
void IProtocolToken.Read(UdpPacket packet) { this.onFireApplied = packet.ReadBool(); }
public void Read(UdpPacket packet) { HasMovementControl = packet.ReadBool(); }
public void Read(UdpPacket packet) { Won = packet.ReadBool(); EndGameReason = packet.ReadString(); }
void IProtocolToken.Read(UdpPacket packet) { this.playerTarget = packet.ReadBoltEntity(); this.pickup = packet.ReadBool(); this.putDown = packet.ReadBool(); }