C# Class FOnline.MapManager

Exposes global map/location managing facilities.
Inheritance: IMapManager
Afficher le fichier Open project: wladimiiir/vault112

Méthodes publiques

Méthode Description
CreateLocation ( ushort pid, ushort wx, ushort wy, CritterArray critters ) : uint
DeleteLocation ( uint loc_id ) : void
FromNativeMap ( IntPtr ptr ) : Map
GetAllLocations ( ushort pid, LocationArray locations ) : uint
GetAllMaps ( ushort pid, MapArray maps ) : uint
GetLocation ( uint loc_id ) : Location
GetLocationByPid ( ushort pid, uint skip_count ) : Location
GetLocations ( ushort wx, ushort wy, uint radius, LocationArray locations ) : uint
GetMap ( uint map_id ) : Map
GetMapByPid ( ushort pid, uint skip_count ) : Map
GetVisibleLocations ( ushort wx, ushort wy, uint radius, Critter visible_for, LocationArray locations ) : uint
GetZoneLocationIds ( ushort zx, ushort zy, uint zone_radius, UIntArray location_ids ) : uint

Private Methods

Méthode Description
Global_CreateLocation ( ushort pid, ushort wx, ushort wy, IntPtr critters ) : uint
Global_DeleteLocation ( uint loc_id ) : void
Global_GetAllLocations ( ushort pid, IntPtr array ) : uint
Global_GetAllMaps ( ushort pid, IntPtr array ) : uint
Global_GetLocation ( uint loc_id ) : IntPtr
Global_GetLocationByPid ( ushort pid, uint skip_count ) : IntPtr
Global_GetLocations ( ushort wx, ushort wy, uint radius, IntPtr locations ) : uint
Global_GetMap ( uint map_id ) : IntPtr
Global_GetMapByPid ( ushort pid, uint skip_count ) : IntPtr
Global_GetVisibleLocations ( ushort wx, ushort wy, uint radius, IntPtr visible_for, IntPtr locations ) : uint
Global_GetZoneLocationIds ( ushort zx, ushort zy, uint zone_radius, IntPtr location_ids ) : uint
Map_FromNative ( IntPtr ptr ) : Map

Method Details

CreateLocation() public méthode

public CreateLocation ( ushort pid, ushort wx, ushort wy, CritterArray critters ) : uint
pid ushort
wx ushort
wy ushort
critters CritterArray
Résultat uint

DeleteLocation() public méthode

public DeleteLocation ( uint loc_id ) : void
loc_id uint
Résultat void

FromNativeMap() public méthode

public FromNativeMap ( IntPtr ptr ) : Map
ptr System.IntPtr
Résultat Map

GetAllLocations() public méthode

public GetAllLocations ( ushort pid, LocationArray locations ) : uint
pid ushort
locations LocationArray
Résultat uint

GetAllMaps() public méthode

public GetAllMaps ( ushort pid, MapArray maps ) : uint
pid ushort
maps MapArray
Résultat uint

GetLocation() public méthode

public GetLocation ( uint loc_id ) : Location
loc_id uint
Résultat Location

GetLocationByPid() public méthode

public GetLocationByPid ( ushort pid, uint skip_count ) : Location
pid ushort
skip_count uint
Résultat Location

GetLocations() public méthode

public GetLocations ( ushort wx, ushort wy, uint radius, LocationArray locations ) : uint
wx ushort
wy ushort
radius uint
locations LocationArray
Résultat uint

GetMap() public méthode

public GetMap ( uint map_id ) : Map
map_id uint
Résultat Map

GetMapByPid() public méthode

public GetMapByPid ( ushort pid, uint skip_count ) : Map
pid ushort
skip_count uint
Résultat Map

GetVisibleLocations() public méthode

public GetVisibleLocations ( ushort wx, ushort wy, uint radius, Critter visible_for, LocationArray locations ) : uint
wx ushort
wy ushort
radius uint
visible_for Critter
locations LocationArray
Résultat uint

GetZoneLocationIds() public méthode

public GetZoneLocationIds ( ushort zx, ushort zy, uint zone_radius, UIntArray location_ids ) : uint
zx ushort
zy ushort
zone_radius uint
location_ids UIntArray
Résultat uint