Пример #1
0
 public void SendTileAddCreature(Creature creature)
 {
     NetworkMessage message = new NetworkMessage();
     uint remove;
     bool known = IsCreatureKnown(creature.Id, out remove);
     TileAddCreaturePacket.Add(
         message,
         creature.Tile.Location,
         creature.Tile.GetStackPosition(creature),
         creature,
         known,
         remove
     );
     Send(message);
 }
Пример #2
0
        public void SendCreatureUpdateHealth(Creature creature)
        {
            NetworkMessage outMessage = new NetworkMessage();

            CreatureHealthPacket.Add(
                outMessage,
                creature.Id,
                creature.HealthPercent);

            Send(outMessage);
        }
Пример #3
0
 public void SendCreatureTurn(Creature creature)
 {
     NetworkMessage message = new NetworkMessage();
     CreatureTurnPacket.Add(
         message,
         creature
     );
     Send(message);
 }
Пример #4
0
 public void SendCreatureSpeech(Creature creature, SpeechType speechType, string message)
 {
     NetworkMessage outMessage = new NetworkMessage();
     CreatureSpeechPacket.Add(
         outMessage,
         creature.Name,
         1,
         speechType,
         message,
         creature.Tile.Location,
         ChatChannel.None,
         0000
     );
     Send(outMessage);
 }
Пример #5
0
 public void SendCreatureRemove(Creature creature)
 {
     NetworkMessage message = new NetworkMessage();
     TileRemoveThingPacket.Add(
         message,
         creature.Tile.Location,
         creature.Tile.GetStackPosition(creature)
     );
     Send(message);
 }
Пример #6
0
        public void SendCreatureChangeSpeed(Creature creature)
        {
            NetworkMessage message = new NetworkMessage();

            CreatureChangeSpeedPacket.Add(
                message,
                creature
            );

            Send(message);
        }