Package pl.AWTGameEngine.components
Class Prefab
java.lang.Object
pl.AWTGameEngine.components.base.ObjectComponent
pl.AWTGameEngine.components.base.NetComponent
pl.AWTGameEngine.components.Prefab
Injects a prefab to an object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod will be called when component will be added to the object.Object synchronization is handled over a TCP connection to ensure that component will be updated.voidonSynchronizeReceived(String data) Event is fired when synchronization is received in the component.voidsetPrefabName(String prefabName) Methods inherited from class pl.AWTGameEngine.components.base.NetComponent
canSynchronize, clearNetCache, onClientConnect, onClientDisconnect, onClientTryToConnect, onNetUpdateMethods inherited from class pl.AWTGameEngine.components.base.ObjectComponent
conflictsWith, getCamera, getComponentAuthor, getComponentDescription, getComponentName, getKeyListener, getMouseListener, getObject, getObjectByName, getRenderEngine, getRequiredClass, getScene, getSceneLoader, getWindow, hasRequiredClass, isDefaultComponent, isGLComponent, isUnique, isWebComponent, on3DRenderRequest, onAddComponent, onAfterRender, onAfterUpdate, onButtonClick, onCollide, onCollide, onContextMenuClick, onContextMenuOpen, onEverySecond, onGUIUpdate, onKeyType, onKeyType, onMenuBarClick, onMouseClick, onMouseClick, onPhysicsAfterUpdate, onPhysicsPreUpdate, onPhysicsUpdate, onPreRender, onPreUpdate, onRemoveComponent, onRender, onSerializationFinish, onTreeValueChange, onTriggerEnter, onTriggerLeave, onUpdate, onUpdateCameraPosition, onUpdateCameraPosition, onUpdateCameraRotation, onUpdatePosition, onUpdatePosition, onUpdateRotation, onUpdateRotation, onUpdateSize, onUpdateSize, onWebRenderRequest, onWindowClosing, onWindowMove, onWindowResize
-
Constructor Details
-
Prefab
-
-
Method Details
-
onAddComponent
public void onAddComponent()Description copied from class:ObjectComponentMethod will be called when component will be added to the object.- Overrides:
onAddComponentin classObjectComponent
-
getPrefabName
-
setPrefabName
-
onSynchronize
Description copied from class:NetComponentObject synchronization is handled over a TCP connection to ensure that component will be updated.- Overrides:
onSynchronizein classNetComponent- Returns:
- NetBlock
-
onSynchronizeReceived
Description copied from class:NetComponentEvent is fired when synchronization is received in the component.- Overrides:
onSynchronizeReceivedin classNetComponent- Parameters:
data- Data from the NetBlock
-