C# Class CEngineSharp_Server.World.Maps.Map

Exibir arquivo Open project: JohnLamontagne/CEngineSharp Class Usage Examples

Public Methods

Method Description
AddPlayer ( Player player ) : void
DespawnMapNpc ( MapNpc mapNpc ) : void
DespawnMapNpc ( int mapNpcIndex ) : void
GetMapData ( ) : NetBuffer
GetMapItem ( Vector mapItemPos ) : MapItem
GetMapItems ( ) : CEngineSharp_Server.World.Maps.MapItem[]
GetMapNpc ( int mapNpcIndex ) : MapNpc
GetMapNpcs ( ) : CEngineSharp_Server.World.Entities.MapNpc[]
GetPlayer ( int playerIndex ) : Player
GetPlayers ( ) : CEngineSharp_Server.World.Entities.Player[]
GetTile ( Vector position ) : Tile
GetTile ( int x, int y ) : Tile
Map ( ) : System
RemoveMapItem ( MapItem mapItem ) : void
RemovePlayer ( Player player, bool leftGame ) : void
ResizeMap ( int newWidth, int newHeight ) : void
SendPacket ( Packet packet, NetDeliveryMethod method, ChannelTypes type, bool checkPlayerLoaded = false ) : void
SetTile ( Vector position, Tile tile ) : void
SetTile ( int x, int y, Tile tile ) : void
SpawnItem ( System.Item item, Vector position, int spawnTime ) : void
SpawnMapNpc ( Npc npc, Vector position ) : void

Method Details

AddPlayer() public method

public AddPlayer ( Player player ) : void
player CEngineSharp_Server.World.Entities.Player
return void

DespawnMapNpc() public method

public DespawnMapNpc ( MapNpc mapNpc ) : void
mapNpc CEngineSharp_Server.World.Entities.MapNpc
return void

DespawnMapNpc() public method

public DespawnMapNpc ( int mapNpcIndex ) : void
mapNpcIndex int
return void

GetMapData() public method

public GetMapData ( ) : NetBuffer
return Lidgren.Network.NetBuffer

GetMapItem() public method

public GetMapItem ( Vector mapItemPos ) : MapItem
mapItemPos CEngineSharp_Utilities.Vector
return MapItem

GetMapItems() public method

public GetMapItems ( ) : CEngineSharp_Server.World.Maps.MapItem[]
return CEngineSharp_Server.World.Maps.MapItem[]

GetMapNpc() public method

public GetMapNpc ( int mapNpcIndex ) : MapNpc
mapNpcIndex int
return CEngineSharp_Server.World.Entities.MapNpc

GetMapNpcs() public method

public GetMapNpcs ( ) : CEngineSharp_Server.World.Entities.MapNpc[]
return CEngineSharp_Server.World.Entities.MapNpc[]

GetPlayer() public method

public GetPlayer ( int playerIndex ) : Player
playerIndex int
return CEngineSharp_Server.World.Entities.Player

GetPlayers() public method

public GetPlayers ( ) : CEngineSharp_Server.World.Entities.Player[]
return CEngineSharp_Server.World.Entities.Player[]

GetTile() public method

public GetTile ( Vector position ) : Tile
position CEngineSharp_Utilities.Vector
return Tile

GetTile() public method

public GetTile ( int x, int y ) : Tile
x int
y int
return Tile

Map() public method

public Map ( ) : System
return System

RemoveMapItem() public method

public RemoveMapItem ( MapItem mapItem ) : void
mapItem MapItem
return void

RemovePlayer() public method

public RemovePlayer ( Player player, bool leftGame ) : void
player CEngineSharp_Server.World.Entities.Player
leftGame bool
return void

ResizeMap() public method

public ResizeMap ( int newWidth, int newHeight ) : void
newWidth int
newHeight int
return void

SendPacket() public method

public SendPacket ( Packet packet, NetDeliveryMethod method, ChannelTypes type, bool checkPlayerLoaded = false ) : void
packet CEngineSharp_Server.Networking.Packet
method NetDeliveryMethod
type ChannelTypes
checkPlayerLoaded bool
return void

SetTile() public method

public SetTile ( Vector position, Tile tile ) : void
position CEngineSharp_Utilities.Vector
tile Tile
return void

SetTile() public method

public SetTile ( int x, int y, Tile tile ) : void
x int
y int
tile Tile
return void

SpawnItem() public method

public SpawnItem ( System.Item item, Vector position, int spawnTime ) : void
item System.Item
position CEngineSharp_Utilities.Vector
spawnTime int
return void

SpawnMapNpc() public method

public SpawnMapNpc ( Npc npc, Vector position ) : void
npc CEngineSharp_Server.World.Entities.Npc
position CEngineSharp_Utilities.Vector
return void