public interface IMapObjectLoader
IEntity
from an IMapObject
.
It separates the actual entity implementation from the loading process and provide a place to implement all the logic
to load attributes and initialize logic based on static information from the IMap
.
Entity
types (e.g. Prop or Creature
).
You can inherit/call the abstract MapObjectLoader
implementation to make use of predefined loading logic.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMapObjectType() |
java.util.Collection<IEntity> |
load(Environment environment,
IMapObject mapObject) |
java.lang.String getMapObjectType()
java.util.Collection<IEntity> load(Environment environment, IMapObject mapObject) throws MapObjectException
MapObjectException