DefaultLevelManager¶
Warning
This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the ILevelManager service via dependency injection to access this functionality.
Information documented here may not be up to date.
-
class
DefaultLevelManager
: System.Object, ILevelManager The default level manager.
-
public void
Load
(System.Object context, Protogame.LevelAsset levelAsset) Loads a level entity into the game hierarchy, with the specified context as the place to load entities. Normally you’ll pass in the game world here, but you don’t have to. For example, if you wanted to load the level into an entity group, you would pass the entity group as the context instead.
Parameters: - context (System.Object) – Usually the current game world, but can be any object in the hierarchy.
- levelAsset (Protogame.LevelAsset) – The level to load.
-
public void
Load
(System.Object context, Protogame.LevelAsset levelAsset, System.Func<IPlan, Object, Boolean> filter) Parameters: - context (System.Object) –
- levelAsset (Protogame.LevelAsset) –
- Object, Boolean> filter (System.Func<IPlan,) –
-
public System.Threading.Tasks.Task
LoadAsync
(System.Object context, Protogame.LevelAsset levelAsset) Parameters: - context (System.Object) –
- levelAsset (Protogame.LevelAsset) –
-
public System.Threading.Tasks.Task
LoadAsync
(System.Object context, Protogame.LevelAsset levelAsset, System.Func<IPlan, Object, Boolean> filter) Parameters: - context (System.Object) –
- levelAsset (Protogame.LevelAsset) –
- Object, Boolean> filter (System.Func<IPlan,) –
-
public void