diff options
| author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-05 21:10:07 +0100 | 
|---|---|---|
| committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-05 21:10:07 +0100 | 
| commit | 9604616001ac273f2c966c3c829638e905def7bf (patch) | |
| tree | 7e958c2b658a4dbc9e79068d7309513efa928937 /src/crepe/api/BehaviorScript.h | |
| parent | 018a451051669506be447aa925ecb6a9f5aaf418 (diff) | |
| parent | 1f4e961d7f9d6887c807cac1a362f2d178b0860b (diff) | |
merge with master and keypressed added to game
Diffstat (limited to 'src/crepe/api/BehaviorScript.h')
| -rw-r--r-- | src/crepe/api/BehaviorScript.h | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h index d556fe5..3909b96 100644 --- a/src/crepe/api/BehaviorScript.h +++ b/src/crepe/api/BehaviorScript.h @@ -23,14 +23,13 @@ class BehaviorScript : public Component {  protected:  	/**  	 * \param id Parent \c GameObject id -	 * \param component_manager Reference to component manager (passed through to \c Script -	 * instance) +	 * \param mediator Mediator reference  	 *  	 * \note Calls to this constructor (should) always pass through \c GameObject::add_component,  	 * which has an exception for this specific component type. This was done so the user does  	 * not have to pass references used within \c Script to each \c BehaviorScript instance.  	 */ -	BehaviorScript(game_object_id_t id, ComponentManager & component_manager); +	BehaviorScript(game_object_id_t id, Mediator & mediator);  	//! Only ComponentManager is allowed to instantiate BehaviorScript  	friend class ComponentManager; @@ -55,8 +54,8 @@ protected:  	friend class ScriptSystem;  protected: -	//! Reference to component manager (passed to Script) -	ComponentManager & component_manager; +	//! Reference mediator +	Mediator & mediator;  };  /**  |