Пример #1
0
 public static void SendSynergyUpdate(BaseGameRoom room, ObjectType type, int ObjectIndex, int Synergy, int UpdateIndex)
 {
     using (PacketBuffer buffer = new PacketBuffer())
     {
         buffer.WriteInteger((int)UDPServerPackets.USSynergyUpdate);
         buffer.WriteInteger((int)type);
         buffer.WriteInteger(ObjectIndex);
         buffer.WriteInteger(UpdateIndex);
         buffer.WriteInteger(Synergy);
         UDPConnector.SendToRoomPlayers(room, buffer.ToArray());
     }
 }
Пример #2
0
 public static void SendPositonUpdate(BaseGameRoom room, ObjectType type, int ObjectIndex, float[] Position, int UpdateIndex)
 {
     using (PacketBuffer buffer = new PacketBuffer())
     {
         buffer.WriteInteger((int)UDPServerPackets.USPositionUpdate);
         buffer.WriteInteger((int)type);
         buffer.WriteInteger(ObjectIndex);
         buffer.WriteInteger(UpdateIndex);
         buffer.WriteFloat(Position[0]);
         buffer.WriteFloat(Position[1]);
         buffer.WriteFloat(Position[2]);
         UDPConnector.SendToRoomPlayers(room, buffer.ToArray());
     }
 }