Skip to content

NavigationSystem2DManager

Inherits: Object

A singleton for managing NavigationSystem2D implementations.

NavigationSystem2DManager is the API for registering NavigationSystem2D implementations and setting the default implementation.

Note: It is not possible to switch servers at runtime. This class is only used on startup at the server initialization level.

Returns Method
void register_system(name: String, create_callback: Callable)
void set_default_system(name: String, priority: int)

register_system

void register_system(name: String, create_callback: Callable)

Registers a NavigationSystem2D implementation by passing a name and a Callable that returns a NavigationSystem2D object.

set_default_system

void set_default_system(name: String, priority: int)

Sets the default NavigationSystem2D implementation to the one identified by name, if priority is greater than the priority of the current default implementation.