![]() |
SpaceRTS - Starter Pack
1.3
|
Base class for all the Components that need to comunicate with the GameEntity and it's Visual Module. More...
Public Member Functions | |
virtual void | OnVisualModuleSetted () |
Called when the Visual Module is setted. Here we need to initialize all the component related functionality. More... | |
virtual void | OnVisualModuleRemoved () |
Called when the Visual Module is removed. Here we need to uninitialize all the component related functionality. More... | |
Protected Member Functions | |
virtual void | SetupEntityComponent () |
virtual class to be implemented. This will be called on the Awake to do a proper initialization of the component ensuring that the GameEntity thisEntity it's already defined at this point. Version 1.1: This will no longer be used in the future. Use instead OnVisualModuleSetted and OnVisualModuleRemoved. More... | |
virtual void | OnValidate () |
Called by unity when the script is reloaded. Here we setup the component and check that all is setted correctly. More... | |
T | GetSceneSystem< T > () |
Shortcut for access a SceneSystem registered in the GameScene. More... | |
T | GetVisualProxyProperty< T > (string name) |
Shortcut for access the property located at the GameEntity visual module. More... | |
void | LogsClear () |
Clears all log messages More... | |
void | Log (string message) |
Stores the message as a log that can be used later to show a warning in the editor or console. More... | |
void | PushLogs () |
Push all the stored logs to the console. More... | |
Properties | |
GameEntity | ThisEntity [get] |
The GameEntity attached to this component. More... | |
MessageSink | Messages [get] |
Shortcut for the Message sink located at the GameEntity attached to this component. More... | |
ComponentProxy | VisualProxy [get] |
Shortcut for the ComponentProxy located at the GameEntity attached to this component. More... | |
Base class for all the Components that need to comunicate with the GameEntity and it's Visual Module.
|
protected |
Shortcut for access a SceneSystem registered in the GameScene.
T | Must inherit from GameSceneSystem. |
T | : | GameSceneSystem |
|
protected |
Shortcut for access the property located at the GameEntity visual module.
T | Type of the request Component. |
name | Name of the requested property. |
T | : | Component |
|
protected |
Stores the message as a log that can be used later to show a warning in the editor or console.
message |
|
protected |
Clears all log messages
|
protectedvirtual |
Called by unity when the script is reloaded. Here we setup the component and check that all is setted correctly.
Reimplemented in NullPointerGame.ResourceSystem.ResourceCollector.
|
virtual |
Called when the Visual Module is removed. Here we need to uninitialize all the component related functionality.
Reimplemented in NullPointerGame.NavigationSystem.Navigation, GameBase.Selectable, NullPointerGame.BuildSystem.StaticBuilder, NullPointerGame.BuildSystem.Buildable, SpaceRTSKit.Core.RTSUnitHUD, NullPointerGame.Spatial.SpatialUpdate, SpaceRTSKit.FeedbackAndEffects.SelectionFeedback, NullPointerGame.DamageSystem.Damageable, NullPointerGame.Spatial.BuildLocationValidator, SpaceRTSKit.FeedbackAndEffects.ExtractionFeedback, NullPointerGame.ResourceSystem.ResourceWarehouse, NullPointerGame.NavigationSystem.NavMeshNavigation, SpaceRTSKit.FeedbackAndEffects.ShipMoveFeedback, SpaceRTSKit.Core.UnitSpawner, and SpaceRTSKit.FeedbackAndEffects.ConstructFeedback.
|
virtual |
Called when the Visual Module is setted. Here we need to initialize all the component related functionality.
Reimplemented in NullPointerGame.NavigationSystem.Navigation, GameBase.Selectable, NullPointerGame.BuildSystem.StaticBuilder, NullPointerGame.BuildSystem.Buildable, SpaceRTSKit.Core.RTSUnitHUD, NullPointerGame.Spatial.SpatialUpdate, SpaceRTSKit.FeedbackAndEffects.SelectionFeedback, SpaceRTSKit.FeedbackAndEffects.ExtractionFeedback, NullPointerGame.ResourceSystem.ResourceWarehouse, NullPointerGame.NavigationSystem.NavMeshNavigation, SpaceRTSKit.Core.UnitSpawner, SpaceRTSKit.FeedbackAndEffects.ShipMoveFeedback, NullPointerGame.DamageSystem.Damageable, SpaceRTSKit.FeedbackAndEffects.ConstructFeedback, and NullPointerGame.Spatial.BuildLocationValidator.
|
protected |
Push all the stored logs to the console.
|
protectedvirtual |
virtual class to be implemented. This will be called on the Awake to do a proper initialization of the component ensuring that the GameEntity thisEntity it's already defined at this point. Version 1.1: This will no longer be used in the future. Use instead OnVisualModuleSetted and OnVisualModuleRemoved.
|
get |
Shortcut for the Message sink located at the GameEntity attached to this component.
|
get |
The GameEntity attached to this component.
|
get |
Shortcut for the ComponentProxy located at the GameEntity attached to this component.