Class MapObjectLoader
- All Implemented Interfaces:
IMapObjectLoader
- Direct Known Subclasses:
CollisionBoxMapObjectLoader, CreatureMapObjectLoader, CustomMapObjectLoader, EmitterMapObjectLoader, LightSourceMapObjectLoader, MapAreaMapObjectLoader, PropMapObjectLoader, SoundSourceMapObjectLoader, SpawnpointMapObjectLoader, StaticShadowMapObjectLoader, TriggerMapObjectLoader
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMapObjectLoader(MapObjectType mapObjectType) protectedMapObjectLoader(String mapObjectType) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterLoad(Collection<IEntity> entities, IMapObject mapObject) This method is called externally on the loader instance after the entities have been loaded.protected booleanisMatchingType(IMapObject mapObject) static voidloadDefaultProperties(IEntity entity, IMapObject mapObject) Loads engine default properties to the specifiedIEntityinstance:Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IMapObjectLoader
load
-
Constructor Details
-
MapObjectLoader
-
MapObjectLoader
-
-
Method Details
-
getMapObjectType
- Specified by:
getMapObjectTypein interfaceIMapObjectLoader
-
loadDefaultProperties
Loads engine default properties to the specified
IEntityinstance:- width, height
- mapId
- name
- location
- tags
Also, this supports predefined
CustomMapObjectProperties. It loads the specified custom properties via reflection.- Parameters:
entity- The entity instance that will be initialized.mapObject- The mapObject that provides the static information for the new entity.- See Also:
-
afterLoad
Description copied from interface:IMapObjectLoaderThis method is called externally on the loader instance after the entities have been loaded.- Specified by:
afterLoadin interfaceIMapObjectLoader- Parameters:
entities- The loaded entities.mapObject- The map object by which the entities have been loaded.
-
isMatchingType
-