예제 #1
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteVector3(this.p1);
     packet.WriteVector3(this.p2);
     packet.WriteInt(this.treeId);
     packet.WriteInt(this.treeId2);
 }
예제 #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);
 }
예제 #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);
     }
 }
예제 #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);
            }
예제 #6
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(UserName);
     packet.WriteString(DisplayName);
     packet.WriteString(IP);
     packet.WriteInt(AuthLevel);
 }
예제 #7
0
            public override void Write(UdpPacket packet)
            {
                base.Write(packet);

                packet.WriteString(CustomName);
                packet.WriteInt(CreatureInfoId);
            }
예제 #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]);
         }
     }
 }
예제 #9
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(Name);
     packet.WriteString(UnityId);
     packet.WriteString(Version);
     packet.WriteInt((int)PrefferedClass);
 }
예제 #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);
     }
 }
예제 #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]);
         }
     }
 }
예제 #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);
 }
예제 #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);
     }
 }
예제 #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]);
         }
     }
 }
예제 #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);
         }
     }
 }
예제 #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);
         }
     }
 }
예제 #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);
         }
     }
 }
예제 #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);
 }
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteInt(this.ChunkIndex);
 }
 public void Write(UdpPacket packet)
 {
     packet.WriteInt((int)Reason);
 }
예제 #24
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(data);
     packet.WriteInt(playerIndex);
 }
예제 #25
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Anchor);
     packet.WriteInt(this.Index);
 }
예제 #26
0
 public void Write(UdpPacket packet)
 {
     packet.WriteInt(intVal);
 }
예제 #27
0
 public void Write(UdpPacket packet)
 {
     packet.WriteInt(onlineIndex);
 }
예제 #28
0
 public void Write(UdpPacket packet)
 {
     packet.WriteString(RoomInfo);
     packet.WriteString(Gamemode);
     packet.WriteInt(PlayersCount);
 }
예제 #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);
 }
예제 #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);
 }