mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-18 06:03:48 +00:00
Adds some in-progress gameObject recreation of various legacy game classes, such as PlayerObject, AIPlayerObject, Sound Emitter and Static Shape.
This commit is contained in:
parent
e0627973fb
commit
f3e04751b6
23 changed files with 792 additions and 35 deletions
28
Engine/source/T3D/gameObjects/staticShapeObject.h
Normal file
28
Engine/source/T3D/gameObjects/staticShapeObject.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#include "T3D/entity.h"
|
||||
#include "T3D/components/render/meshComponent.h"
|
||||
#include "T3D/components/collision/shapeCollisionComponent.h"
|
||||
#include "T3D/components/animation/animationComponent.h"
|
||||
|
||||
class StaticShapeObject : public Entity
|
||||
{
|
||||
typedef Entity Parent;
|
||||
|
||||
MeshComponent* mMeshComponent;
|
||||
ShapeCollisionComponent* mCollisionComponent;
|
||||
AnimationComponent* mAnimationComponent;
|
||||
|
||||
public:
|
||||
StaticShapeObject();
|
||||
~StaticShapeObject();
|
||||
|
||||
virtual bool onAdd();
|
||||
virtual void onRemove();
|
||||
|
||||
MeshComponent* getMeshComponent() { return mMeshComponent; }
|
||||
ShapeCollisionComponent* getCollisionComponent() { return mCollisionComponent; }
|
||||
AnimationComponent* getAnimationComponent() { return mAnimationComponent; }
|
||||
|
||||
DECLARE_CONOBJECT(StaticShapeObject);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue