mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 20:10:32 +00:00
Updates to various components, added a few new ones.
This commit is contained in:
parent
e0627973fb
commit
dac8d6e1fd
52 changed files with 4566 additions and 1799 deletions
30
Engine/source/T3D/components/game/controlObjectComponent.h
Normal file
30
Engine/source/T3D/components/game/controlObjectComponent.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include "T3D/components/component.h"
|
||||
|
||||
#include "T3D/gameBase/gameConnection.h"
|
||||
|
||||
class ControlObjectComponent : public Component
|
||||
{
|
||||
typedef Component Parent;
|
||||
|
||||
GameConnection* mOwnerConnection;
|
||||
S32 mOwnerConnectionId;
|
||||
|
||||
public:
|
||||
ControlObjectComponent();
|
||||
~ControlObjectComponent();
|
||||
|
||||
DECLARE_CONOBJECT(ControlObjectComponent);
|
||||
|
||||
virtual bool onAdd();
|
||||
virtual void onRemove();
|
||||
static void initPersistFields();
|
||||
|
||||
virtual void onComponentAdd();
|
||||
virtual void onComponentRemove();
|
||||
|
||||
void onClientConnect(GameConnection* conn);
|
||||
void onClientDisconnect(GameConnection* conn);
|
||||
void setConnectionControlObject(GameConnection* conn);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue