public void SendTileRemoveThing(Location fromLocation, byte fromStackPosition) { NetworkMessage message = new NetworkMessage(); TileRemoveThingPacket.Add( message, fromLocation, fromStackPosition ); Send(message); }
public void SendPlayerMove(Location fromLocation, byte fromStackPosition, Location toLocation) { NetworkMessage outMessage = new NetworkMessage(); if (fromLocation.Z == 7 && toLocation.Z >= 8) { TileRemoveThingPacket.Add( outMessage, fromLocation, fromStackPosition ); } else { CreatureMovePacket.Add( outMessage, fromLocation, fromStackPosition, toLocation ); } //floor change down if (toLocation.Z > fromLocation.Z) { MapFloorChangeDownPacket.Add( this, outMessage, fromLocation, fromStackPosition, toLocation ); } //floor change up else if (toLocation.Z < fromLocation.Z) { MapFloorChangeUpPacket.Add( this, outMessage, fromLocation, fromStackPosition, toLocation ); } MapSlicePacket.Add( this, outMessage, fromLocation, toLocation ); Send(outMessage); }
public void SendCreatureRemove(Creature creature) { NetworkMessage message = new NetworkMessage(); TileRemoveThingPacket.Add( message, creature.Tile.Location, creature.Tile.GetStackPosition(creature) ); Send(message); }
public void SendPlayerTeleport(Location fromLocation, byte fromStackPosition, Location toLocation) { NetworkMessage outMessage = new NetworkMessage(); TileRemoveThingPacket.Add( outMessage, fromLocation, fromStackPosition ); MapDescriptionPacket.Add( this, outMessage, toLocation ); Send(outMessage); }