SceneManagerService
This services allows you to get information about the entities that are in your map.
getPlayers
Returns a list with all the players in the map.
// Request
{
"service": "SceneManagerService",
"method": "getPlayers",
"params": {}
}
// Response
{
"status": "ok",
"result": {
"players": [
// player 1,
// player 2,
// [...]
]
}
}The players field is a list of objects with the structure described in the Entities chapter.
getMonsters
Returns a list of all the monsters in the map.
The monsters field is a list of objects with the structure described in the Entities chapter.
getItems
Returns a list of all the items in the map.
The items field is a list of objects with the structure described in the Entities chapter.
getNpcs
Returns a list of all the NPCs in the map.
The npcs field is a list of objects with the structure described in the Entities chapter.
findPlayer
Searchs for a player in the map. Returns the player object if found, otherwise returns an error.
findMonster
Searchs for a monster in the map. Returns the monster object if found, otherwise returns an error.
findItem
Searchs for an item in the map. Returns the item object if found, otherwise returns an error.
findNpc
Searchs for an NPC in the map. Returns the NPC object if found, otherwise returns an error.
getAllBosses
Returns a list with all the bosses in the map.
The bosses field is a list of objects with the monster structure described in the Entities chapter.
getMapGrid
Returns the current map grid that tells you which cells are walkable and which ones are not.
The grid field is a 2D array. The values inside of it tells you if a cell is walkable (value of 0) or non walkable (values 1 and 2).
Last updated
