Class APIModule
java.lang.Object
gaiasky.script.v2.impl.APIModule
- Direct Known Subclasses:
BaseModule, CamcorderModule, CameraModule, DataModule, GeomModule, GraphicsModule, InputModule, InstancesModule, InteractiveCameraModule, OutputModule, RefsysModule, SceneModule, TimeModule, UiModule
Abstract class which contains attributes and methods common to all API modules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final APIv2Reference to API object.protected final EventManagerReference to event manager.protected final Logger.Logprotected final APIModuleReference to self.protected final StringModule name. -
Constructor Summary
ConstructorsConstructorDescriptionAPIModule(EventManager em, APIv2 api, String name) Create a new module with the given attributes. -
Method Summary
-
Field Details
-
logger
-
me
Reference to self. -
em
Reference to event manager. -
api
Reference to API object. -
name
Module name.
-
-
Constructor Details
-
APIModule
Create a new module with the given attributes.- Parameters:
api- Reference to the API class.name- Name of the module.
-
-
Method Details
-
dispose
public void dispose()Method called whenever the module is disposed. To be overwritten if necessary.
-