OgmoLevelReader¶
Warning
This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the ILevelReader service via dependency injection to access this functionality.
Information documented here may not be up to date.
-
class
OgmoLevelReader
: System.Object, ILevelReader The ogmo level reader.
-
public System.Collections.Generic.IEnumerable<IEntity>
Read
(System.IO.Stream stream, System.Object context, System.Func<IPlan, Object, Boolean> filter) Parameters: - stream (System.IO.Stream) –
- context (System.Object) –
- Object, Boolean> filter (System.Func<IPlan,) –
-
public System.Collections.Generic.IEnumerable<IEntity>
Read
(System.IO.Stream stream, System.Object context) Creates the entities from the stream.
Parameters: - stream (System.IO.Stream) – The stream which contains an Ogmo Editor level.
- context (System.Object) – The context in which entities are being spawned in the hierarchy. This is usually the current world, but it doesn’t have to be (e.g. if you wanted to load a level under an entity group, you would pass the entity group here).
Returns: A list of entities to spawn within the world.
-
public System.Collections.Generic.IEnumerable<IEntity>