Exemplo n.º 1
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteVector3(this.p1);
     packet.WriteVector3(this.p2);
     packet.WriteInt(this.treeId);
     packet.WriteInt(this.treeId2);
 }
Exemplo n.º 2
0
 public void Write(UdpPacket packet)
 {
     packet.WriteInt((int)ID);
     packet.WriteInt(currentAmmo);
     packet.WriteInt(totalAmmo);
     packet.WriteULong(networkId.PackedValue);
 }
 public void Write(UdpPacket packet)
 {
     packet.WriteNetworkId(_entityID);
     packet.WriteInt(_width);
     packet.WriteInt(_height);
     packet.WriteInt(_format);
 }
Exemplo n.º 4
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteInt(this.Views.Count);
     for (int i = 0; i < this.Views.Count; i++)
     {
         packet.WriteInt(this.Views[i].ItemId);
         packet.WriteVector3(this.Views[i].Position);
         packet.WriteQuaternion(this.Views[i].Rotation);
     }
 }
Exemplo n.º 5
0
            public override void Write(UdpPacket packet)
            {
                base.Write(packet);

                packet.WriteInt((int)DeathState);
                packet.WriteInt(FactionId);
                packet.WriteInt(ModelId);
                packet.WriteInt(OriginalModelId);
                packet.WriteBool(FreeForAll);
                packet.WriteFloat(Scale);
            }
Exemplo n.º 6
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(UserName);
     packet.WriteString(DisplayName);
     packet.WriteString(IP);
     packet.WriteInt(AuthLevel);
 }
Exemplo n.º 7
0
            public override void Write(UdpPacket packet)
            {
                base.Write(packet);

                packet.WriteString(CustomName);
                packet.WriteInt(CreatureInfoId);
            }
Exemplo n.º 8
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     packet.WriteVector3(this.P1);
     packet.WriteVector3(this.P2);
     packet.WriteBoltEntity(this.Support);
     packet.WriteInt((int)this.Additions);
     packet.WriteInt((this.PointsPositions == null) ? 0 : this.PointsPositions.Length);
     if (this.PointsPositions != null)
     {
         for (int i = 0; i < this.PointsPositions.Length; i++)
         {
             packet.WriteVector3(this.PointsPositions[i]);
         }
     }
 }
Exemplo n.º 9
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(Name);
     packet.WriteString(UnityId);
     packet.WriteString(Version);
     packet.WriteInt((int)PrefferedClass);
 }
Exemplo n.º 10
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(ServerName);
     packet.WriteString(Version);
     packet.WriteString(GameMode);
     packet.WriteString(MapName);
     packet.WriteBool(Public);
     packet.WriteBool(GameStarted);
     packet.WriteBool(CanBeJoined);
     packet.WriteInt(MaxPlayers);
     packet.WriteInt(CurrentPlayers);
     foreach (var nickname in PlayersNicknames)
     {
         packet.WriteString(nickname);
     }
 }
Exemplo n.º 11
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     packet.WriteInt(this.Architects.Length);
     for (int i = 0; i < this.Architects.Length; i++)
     {
         packet.WriteInt(this.Architects[i].PointsCount);
         packet.WriteInt(this.Architects[i].PointsPositions.Length);
         packet.WriteToken(this.Architects[i].CustomToken);
         packet.WriteBool(this.Architects[i].AboveGround);
         packet.WriteBoltEntity(this.Architects[i].Support);
         for (int j = 0; j < this.Architects[i].PointsPositions.Length; j++)
         {
             packet.WriteVector3(this.Architects[i].PointsPositions[j]);
         }
     }
 }
Exemplo n.º 12
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteVector3(this.Scale);
     packet.WriteVector3(this.HipPosition);
     packet.WriteQuaternion(this.HipRotation);
     packet.WriteInt(this.MaterialIndex);
     packet.WriteFloat(this.skinDamage1);
     packet.WriteFloat(this.skinDamage2);
     packet.WriteFloat(this.skinDamage3);
     packet.WriteFloat(this.skinDamage4);
     packet.WriteInt(this.storedRagDollName);
     if (packet.WriteBool(this.OriginalMutant && this.OriginalMutant.IsAttached()))
     {
         packet.WriteBoltEntity(this.OriginalMutant);
     }
     packet.WriteBool(this.Skinny);
     packet.WriteInt(this.Props);
 }
Exemplo n.º 13
0
 public void Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     for (int i = 0; i < this.Anchors.Length; i++)
     {
         packet.WriteBoltEntity(this.Anchors[i].Entity);
         packet.WriteInt(this.Anchors[i].Index);
     }
 }
Exemplo n.º 14
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteVector3(this.Scale);
     packet.WriteVector3(this.HipPosition);
     packet.WriteQuaternion(this.HipRotation);
     packet.WriteInt(this.MaterialIndex);
     packet.WriteFloat(this.skinDamage1);
     packet.WriteFloat(this.skinDamage2);
     packet.WriteFloat(this.skinDamage3);
     packet.WriteFloat(this.skinDamage4);
     packet.WriteInt(this.storedRagDollName);
     if (packet.WriteBool(this.OriginalMutant && this.OriginalMutant.IsAttached()))
     {
         packet.WriteBoltEntity(this.OriginalMutant);
     }
     packet.WriteBool(this.Skinny);
     packet.WriteInt(this.Props);
 }
 public void Write(UdpPacket packet)
 {
     packet.WriteString(this.AdminPassword);
     packet.WriteString(this.ServerPassword);
     if (this.steamBlobToken != null)
     {
         packet.WriteInt(this.steamBlobToken.Length);
         for (int i = 0; i < this.steamBlobToken.Length; i++)
         {
             packet.WriteByte(this.steamBlobToken[i]);
         }
     }
 }
Exemplo n.º 16
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     if (packet.WriteBool(this.Holes != null))
     {
         packet.WriteInt(this.Holes.Length);
         for (int i = 0; i < this.Holes.Length; i++)
         {
             packet.WriteVector3(this.Holes[i]._position);
             packet.WriteVector2(this.Holes[i]._size);
         }
     }
 }
Exemplo n.º 17
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     if (packet.WriteBool(this.Holes != null))
     {
         int num = Mathf.Min(this.Holes.Length, 20);
         packet.WriteInt(num);
         for (int i = 0; i < num; i++)
         {
             packet.WriteVector3(this.Holes[i]._position);
             packet.WriteFloat(this.Holes[i]._yRotation);
             packet.WriteVector2(this.Holes[i]._size);
         }
     }
 }
Exemplo n.º 18
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     packet.WriteFloat(this.Height);
     packet.WriteBoltEntity(this.Support);
     if (packet.WriteBool(this.Holes != null))
     {
         packet.WriteInt(this.Holes.Length);
         for (int i = 0; i < this.Holes.Length; i++)
         {
             packet.WriteVector3(this.Holes[i]._position);
             packet.WriteVector2(this.Holes[i]._size);
         }
     }
 }
Exemplo n.º 19
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(DisplayName);
     packet.WriteInt(PlayerID);
 }
 public void Write(UdpPacket packet)
 {
     packet.WriteInt(ticket.Length);
     packet.WriteByteArray(ticket);
     packet.WriteULong(steamid);
 }
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteInt(this.ChunkIndex);
 }
Exemplo n.º 22
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteInt(this.ChunkIndex);
 }
 public void Write(UdpPacket packet)
 {
     packet.WriteInt((int)Reason);
 }
Exemplo n.º 24
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(data);
     packet.WriteInt(playerIndex);
 }
Exemplo n.º 25
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Anchor);
     packet.WriteInt(this.Index);
 }
Exemplo n.º 26
0
 public void Write(UdpPacket packet)
 {
     packet.WriteInt(intVal);
 }
Exemplo n.º 27
0
 public void Write(UdpPacket packet)
 {
     packet.WriteInt(onlineIndex);
 }
Exemplo n.º 28
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(RoomInfo);
     packet.WriteString(Gamemode);
     packet.WriteInt(PlayersCount);
 }
Exemplo n.º 29
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Anchor);
     packet.WriteInt(this.Index);
 }
 public void Write(UdpPacket packet)
 {
     packet.WriteString(playerName);
     packet.WriteInt(playerNumber);
     packet.WriteColorRGB(playerColor);
 }
Exemplo n.º 31
0
            public override void Write(UdpPacket packet)
            {
                base.Write(packet);

                packet.WriteInt((int)VisualEffectFlags);
                packet.WriteInt((int)DisplayPowerType);
                packet.WriteInt((int)DeathState);
                packet.WriteInt((int)EmoteType);
                packet.WriteInt((int)ClassType);
                packet.WriteInt(FactionId);
                packet.WriteInt(ModelId);
                packet.WriteInt(OriginalModelId);
                packet.WriteInt(OriginalAIInfoId);
                packet.WriteInt(DisplayPower);
                packet.WriteInt(DisplayPowerMax);
                packet.WriteBool(FreeForAll);
                packet.WriteFloat(Scale);
            }
 public void Write(UdpPacket packet)
 {
     packet.WriteString(levelName);
     packet.WriteInt(playersInGame);
     packet.WriteString(messageOfTheDay);
 }