mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-25 23:29:24 +00:00
clean up "Add" menubar categoes on the 3d object side via the following:
SceneObject now defaults to a category of "misc" getCategoryOfClass now checks parent classes for what categories they hold so that variants can inherit categories are in one of a few rough groups and subgroups depending on actual mapper needs/usages
This commit is contained in:
parent
edbb76155b
commit
fbcfe02098
157 changed files with 127 additions and 131 deletions
|
|
@ -74,7 +74,7 @@ class AccumulationVolume : public ScenePolyhedralSpace
|
|||
// SimObject.
|
||||
DECLARE_CONOBJECT( AccumulationVolume );
|
||||
DECLARE_DESCRIPTION( "Allows objects in an area to have accumulation effect applied." );
|
||||
DECLARE_CATEGORY( "3D Scene" );
|
||||
DECLARE_CATEGORY( "Area" );
|
||||
|
||||
virtual bool onAdd();
|
||||
virtual void onRemove();
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@ protected:
|
|||
|
||||
public:
|
||||
DECLARE_CONOBJECT( AIPlayer );
|
||||
DECLARE_CATEGORY("Actor \t AI");
|
||||
|
||||
AIPlayer();
|
||||
~AIPlayer();
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ class Camera: public ShapeBase
|
|||
virtual void unpackUpdate( NetConnection* conn, BitStream* stream );
|
||||
|
||||
DECLARE_CONOBJECT( Camera );
|
||||
DECLARE_CATEGORY( "Game" );
|
||||
DECLARE_CATEGORY("Actor \t Controllable");
|
||||
DECLARE_DESCRIPTION( "Represents a position, direction and field of view to render a scene from." );
|
||||
static F32 getMovementSpeed() { return smMovementSpeed; }
|
||||
bool isCamera() const { return true; }
|
||||
|
|
|
|||
|
|
@ -194,6 +194,7 @@ public:
|
|||
virtual ~ConvexShape();
|
||||
|
||||
DECLARE_CONOBJECT( ConvexShape );
|
||||
DECLARE_CATEGORY("Object \t Simple");
|
||||
|
||||
// ConsoleObject
|
||||
static void initPersistFields();
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ public:
|
|||
void setRotAngles( const Point3F &angles ){ mRotAngles = angles; }
|
||||
|
||||
DECLARE_CONOBJECT(Debris);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
|
||||
private:
|
||||
SimObject* ss_object;
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ const U32 DecalManager::smMaxIndices = 10000;
|
|||
DecalManager *gDecalManager = NULL;
|
||||
|
||||
IMPLEMENT_CONOBJECT(DecalManager);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
|
||||
ConsoleDoc(
|
||||
"@defgroup Decals\n"
|
||||
|
|
|
|||
|
|
@ -270,6 +270,7 @@ class DecalManager : public SceneObject
|
|||
|
||||
// SimObject.
|
||||
DECLARE_CONOBJECT( DecalManager );
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
static void consoleInit();
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@ class Explosion : public GameBase, public ISceneLight
|
|||
void setCollideType( U32 cType ){ mCollideType = cType; }
|
||||
|
||||
DECLARE_CONOBJECT(Explosion);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
static void initPersistFields();
|
||||
private:
|
||||
SimObject* ss_object;
|
||||
|
|
|
|||
|
|
@ -390,6 +390,7 @@ public:
|
|||
|
||||
// Declare Console Object.
|
||||
DECLARE_CONOBJECT(fxFoliageReplicator);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
};
|
||||
#pragma warning( pop )
|
||||
#endif // _FOLIAGEREPLICATOR_H_
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ public:
|
|||
void setTransform(const MatrixF & mat) { Parent::setTransform(mat); setRenderTransform(mat); };
|
||||
|
||||
DECLARE_CONOBJECT(fxShapeReplicatedStatic);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -187,6 +188,7 @@ public:
|
|||
|
||||
// Declare Console Object.
|
||||
DECLARE_CONOBJECT(fxShapeReplicator);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
};
|
||||
|
||||
#endif // _SHAPEREPLICATOR_H_
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ public:
|
|||
~GroundCover();
|
||||
|
||||
DECLARE_CONOBJECT(GroundCover);
|
||||
DECLARE_CATEGORY("Environment \t BackGround");
|
||||
|
||||
static void consoleInit();
|
||||
static void initPersistFields();
|
||||
|
|
|
|||
|
|
@ -239,6 +239,7 @@ class Lightning : public GameBase
|
|||
void processEvent(LightningStrikeEvent*);
|
||||
|
||||
DECLARE_CONOBJECT(Lightning);
|
||||
DECLARE_CATEGORY("Environment \t Weather");
|
||||
static void initPersistFields();
|
||||
|
||||
U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream);
|
||||
|
|
|
|||
|
|
@ -168,6 +168,7 @@ class ParticleEmitter : public GameBase
|
|||
~ParticleEmitter();
|
||||
|
||||
DECLARE_CONOBJECT(ParticleEmitter);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
|
||||
static Point3F mWindVelocity;
|
||||
static void setWindVelocity( const Point3F &vel ){ mWindVelocity = vel; }
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ class ParticleEmitterNode : public GameBase
|
|||
void advanceTime(F32 dt);
|
||||
|
||||
DECLARE_CONOBJECT(ParticleEmitterNode);
|
||||
DECLARE_CATEGORY("Environment \t FX");
|
||||
static void initPersistFields();
|
||||
|
||||
U32 packUpdate (NetConnection *conn, U32 mask, BitStream* stream);
|
||||
|
|
|
|||
|
|
@ -280,6 +280,7 @@ class Precipitation : public GameBase
|
|||
|
||||
bool onNewDataBlock( GameBaseData *dptr, bool reload );
|
||||
DECLARE_CONOBJECT(Precipitation);
|
||||
DECLARE_CATEGORY("Environment \t Weather");
|
||||
static void initPersistFields();
|
||||
|
||||
U32 packUpdate(NetConnection*, U32 mask, BitStream* stream);
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ public:
|
|||
~Ribbon();
|
||||
|
||||
DECLARE_CONOBJECT(Ribbon);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
static void initPersistFields();
|
||||
bool onNewDataBlock(GameBaseData*,bool);
|
||||
void onRemove();
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ public:
|
|||
void advanceTime(F32 dt);
|
||||
|
||||
DECLARE_CONOBJECT(RibbonNode);
|
||||
DECLARE_CATEGORY("Environment \t FX");
|
||||
static void initPersistFields();
|
||||
|
||||
U32 packUpdate (NetConnection *conn, U32 mask, BitStream* stream);
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@ public:
|
|||
|
||||
bool onNewDataBlock( GameBaseData *dptr, bool reload );
|
||||
DECLARE_CONOBJECT(Splash);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@ public:
|
|||
|
||||
// The derived class should provide the following:
|
||||
DECLARE_CONOBJECT(GameBaseData);
|
||||
DECLARE_CATEGORY("Datablock");
|
||||
GameBaseData();
|
||||
static void initPersistFields();
|
||||
bool preload(bool server, String &errorStr);
|
||||
|
|
@ -442,6 +443,7 @@ public:
|
|||
#endif
|
||||
|
||||
DECLARE_CONOBJECT (GameBase );
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
|
||||
/// @name Callbacks
|
||||
/// @{
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ public:
|
|||
typedef SceneObject Parent;
|
||||
|
||||
DECLARE_CONOBJECT( GroundPlane );
|
||||
DECLARE_CATEGORY("Environment \t BackGround");
|
||||
|
||||
GroundPlane();
|
||||
virtual ~GroundPlane();
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ class Item: public ShapeBase
|
|||
|
||||
public:
|
||||
DECLARE_CONOBJECT(Item);
|
||||
DECLARE_CATEGORY("Item");
|
||||
|
||||
|
||||
Item();
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ public:
|
|||
void inspectPostApply();
|
||||
static void initPersistFields();
|
||||
DECLARE_CONOBJECT(LightBase);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
|
||||
// NetObject
|
||||
U32 packUpdate( NetConnection *conn, U32 mask, BitStream *stream );
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ public:
|
|||
// Declare this object as a ConsoleObject so that we can
|
||||
// instantiate it into the world and network it
|
||||
DECLARE_CONOBJECT(BoxEnvironmentProbe);
|
||||
DECLARE_CATEGORY("Lighting \t Probes");
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Object Editing
|
||||
|
|
|
|||
|
|
@ -274,6 +274,7 @@ public:
|
|||
// Declare this object as a ConsoleObject so that we can
|
||||
// instantiate it into the world and network it
|
||||
DECLARE_CONOBJECT(ReflectionProbe);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Object Editing
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ public:
|
|||
// Declare this object as a ConsoleObject so that we can
|
||||
// instantiate it into the world and network it
|
||||
DECLARE_CONOBJECT(Skylight);
|
||||
DECLARE_CATEGORY("Lighting \t Probes");
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Object Editing
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ public:
|
|||
// Declare this object as a ConsoleObject so that we can
|
||||
// instantiate it into the world and network it
|
||||
DECLARE_CONOBJECT(SphereEnvironmentProbe);
|
||||
DECLARE_CATEGORY("Lighting \t Probes");
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Object Editing
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ class MissionMarker : public ShapeBase
|
|||
void unpackUpdate(NetConnection *conn, BitStream *stream);
|
||||
|
||||
DECLARE_CONOBJECT(MissionMarker);
|
||||
DECLARE_CATEGORY("Markers");
|
||||
static void initPersistFields();
|
||||
};
|
||||
|
||||
|
|
@ -217,6 +218,7 @@ class CameraBookmark : public MissionMarker
|
|||
static void initPersistFields();
|
||||
|
||||
DECLARE_CONOBJECT(CameraBookmark);
|
||||
DECLARE_CATEGORY("Markers");
|
||||
/*DECLARE_CALLBACK( void, onAdd, () );
|
||||
DECLARE_CALLBACK( void, onRemove, () );
|
||||
DECLARE_CALLBACK( void, onGroupAdd, () );
|
||||
|
|
@ -224,4 +226,4 @@ class CameraBookmark : public MissionMarker
|
|||
DECLARE_CALLBACK( void, onInspectPostApply, () );*/
|
||||
};
|
||||
|
||||
#endif // _MISSIONMARKER_H_
|
||||
#endif // _MISSIONMARKER_H_
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ public:
|
|||
// Declare this object as a ConsoleObject so that we can
|
||||
// instantiate it into the world and network it
|
||||
DECLARE_CONOBJECT(NotesObject);
|
||||
DECLARE_CATEGORY("Markers");
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Object Editing
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class OcclusionVolume : public ScenePolyhedralSpace
|
|||
// SimObject.
|
||||
DECLARE_CONOBJECT( OcclusionVolume );
|
||||
DECLARE_DESCRIPTION( "A visibility blocking volume." );
|
||||
DECLARE_CATEGORY( "3D Scene" );
|
||||
DECLARE_CATEGORY("Area");
|
||||
|
||||
virtual bool onAdd();
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ private:
|
|||
|
||||
public:
|
||||
DECLARE_CONOBJECT(PathCamera);
|
||||
DECLARE_CATEGORY("Cinematic");
|
||||
|
||||
DECLARE_CALLBACK( void, onNode, (S32 node));
|
||||
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ private:
|
|||
|
||||
public:
|
||||
DECLARE_CONOBJECT(PathShape);
|
||||
DECLARE_CATEGORY("Cinematic");
|
||||
|
||||
PathShape();
|
||||
~PathShape();
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ class PhysicalZone : public SceneObject
|
|||
|
||||
// SimObject
|
||||
DECLARE_CONOBJECT(PhysicalZone);
|
||||
DECLARE_CATEGORY("Area");
|
||||
static void consoleInit();
|
||||
static void initPersistFields();
|
||||
bool onAdd();
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ public:
|
|||
virtual ~PhysicsDebris();
|
||||
|
||||
DECLARE_CONOBJECT(PhysicsDebris);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
static void initPersistFields();
|
||||
|
||||
bool onAdd();
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public:
|
|||
virtual ~PhysicsForce();
|
||||
|
||||
DECLARE_CONOBJECT( PhysicsForce );
|
||||
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
// SimObject
|
||||
static void initPersistFields();
|
||||
bool onAdd();
|
||||
|
|
@ -88,4 +88,4 @@ protected:
|
|||
};
|
||||
|
||||
|
||||
#endif // _T3D_PHYSICS_PHYSICSFORCE_H_
|
||||
#endif // _T3D_PHYSICS_PHYSICSFORCE_H_
|
||||
|
|
|
|||
|
|
@ -229,6 +229,7 @@ public:
|
|||
virtual ~PhysicsShape();
|
||||
|
||||
DECLARE_CONOBJECT( PhysicsShape );
|
||||
DECLARE_CATEGORY("Object \t Destructable");
|
||||
|
||||
/// Returns the PhysicsShapeData datablock.
|
||||
PhysicsShapeData* getDataBlock() { return static_cast<PhysicsShapeData*>( Parent::getDataBlock() ); }
|
||||
|
|
|
|||
|
|
@ -697,6 +697,7 @@ protected:
|
|||
|
||||
public:
|
||||
DECLARE_CONOBJECT(Player);
|
||||
DECLARE_CATEGORY("Actor \t Controllable");
|
||||
|
||||
Player();
|
||||
~Player();
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ public:
|
|||
|
||||
// ConsoleObject
|
||||
DECLARE_CONOBJECT( PointLight );
|
||||
DECLARE_CATEGORY("Lighting \t Lights");
|
||||
static void initPersistFields();
|
||||
|
||||
// SceneObject
|
||||
|
|
|
|||
|
|
@ -185,7 +185,8 @@ class Portal : public Zone
|
|||
|
||||
// SimObject.
|
||||
DECLARE_CONOBJECT( Portal );
|
||||
|
||||
DECLARE_CATEGORY("Area");
|
||||
|
||||
static void initPersistFields();
|
||||
static void consoleInit();
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ public:
|
|||
virtual ~Prefab();
|
||||
|
||||
DECLARE_CONOBJECT(Prefab);
|
||||
DECLARE_CATEGORY("Object \t Collection");
|
||||
|
||||
static void initPersistFields();
|
||||
|
||||
|
|
|
|||
|
|
@ -187,6 +187,7 @@ public:
|
|||
~Projectile();
|
||||
|
||||
DECLARE_CONOBJECT(Projectile);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
|
||||
// SimObject
|
||||
bool onAdd();
|
||||
|
|
|
|||
|
|
@ -308,6 +308,7 @@ public:
|
|||
void unpackUpdate(NetConnection *conn, BitStream *stream);
|
||||
|
||||
DECLARE_CONOBJECT(RigidShape);
|
||||
DECLARE_CATEGORY("Object \t Destructable");
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ class SFXEmitter : public SceneObject
|
|||
|
||||
DECLARE_CONOBJECT( SFXEmitter );
|
||||
DECLARE_DESCRIPTION( "A 3D object emitting sound." );
|
||||
DECLARE_CATEGORY( "3D Sound" );
|
||||
DECLARE_CATEGORY("Environment \t FX");
|
||||
};
|
||||
|
||||
#endif // _SFXEMITTER_H_
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class SFXSpace : public SceneAmbientSoundObject< ScenePolyhedralObject< SceneSpa
|
|||
// SimObject.
|
||||
DECLARE_CONOBJECT( SFXSpace );
|
||||
DECLARE_DESCRIPTION( "A box volume that defines an ambient sound space." );
|
||||
DECLARE_CATEGORY( "3D Sound" );
|
||||
DECLARE_CATEGORY("Area");
|
||||
|
||||
static void consoleInit();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ public:
|
|||
|
||||
// ConsoleObject
|
||||
DECLARE_CONOBJECT( SpotLight );
|
||||
DECLARE_CATEGORY("Lighting \t Lights");
|
||||
static void initPersistFields();
|
||||
|
||||
// SceneObject
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ protected:
|
|||
|
||||
public:
|
||||
DECLARE_CONOBJECT(StaticShape);
|
||||
DECLARE_CATEGORY("Object \t Destructable");
|
||||
|
||||
StaticShape();
|
||||
~StaticShape();
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ class Trigger : public GameBase
|
|||
|
||||
// SimObject
|
||||
DECLARE_CONOBJECT(Trigger);
|
||||
DECLARE_CATEGORY("Area");
|
||||
|
||||
DECLARE_CALLBACK( void, onAdd, ( U32 objectId ) );
|
||||
DECLARE_CALLBACK( void, onRemove, ( U32 objectId ) );
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ public:
|
|||
~TSStatic();
|
||||
|
||||
DECLARE_CONOBJECT(TSStatic);
|
||||
DECLARE_CATEGORY("Object \t Simple");
|
||||
static void initPersistFields();
|
||||
/// returns the shape asset used for this object
|
||||
StringTableEntry getTypeHint() const override { return (getShapeAsset()) ? getShapeAsset()->getAssetName(): StringTable->EmptyString(); }
|
||||
|
|
|
|||
|
|
@ -180,6 +180,7 @@ class FlyingVehicle: public Vehicle
|
|||
U32 getCollisionMask();
|
||||
public:
|
||||
DECLARE_CONOBJECT(FlyingVehicle);
|
||||
DECLARE_CATEGORY("Actor \t Controllable");
|
||||
static void initPersistFields();
|
||||
|
||||
FlyingVehicle();
|
||||
|
|
|
|||
|
|
@ -200,6 +200,7 @@ class HoverVehicle : public Vehicle
|
|||
void advanceTime(F32 dt);
|
||||
|
||||
DECLARE_CONOBJECT(HoverVehicle);
|
||||
DECLARE_CATEGORY("Actor \t Controllable");
|
||||
// static void initPersistFields();
|
||||
|
||||
U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream);
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ public:
|
|||
/// @}
|
||||
|
||||
DECLARE_CONOBJECT(Vehicle);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ class VehicleBlocker : public SceneObject
|
|||
~VehicleBlocker();
|
||||
|
||||
DECLARE_CONOBJECT(VehicleBlocker);
|
||||
DECLARE_CATEGORY("Area");
|
||||
static void initPersistFields();
|
||||
|
||||
U32 packUpdate (NetConnection *conn, U32 mask, BitStream *stream);
|
||||
|
|
|
|||
|
|
@ -225,6 +225,7 @@ class WheeledVehicle: public Vehicle
|
|||
|
||||
public:
|
||||
DECLARE_CONOBJECT(WheeledVehicle);
|
||||
DECLARE_CATEGORY("Actor \t Controllable");
|
||||
static void initPersistFields();
|
||||
|
||||
WheeledVehicle();
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ class Zone : public SceneAmbientSoundObject< ScenePolyhedralZone >
|
|||
// SimObject
|
||||
DECLARE_CONOBJECT( Zone );
|
||||
DECLARE_DESCRIPTION( "A volume that encloses objects for visibility culling." );
|
||||
DECLARE_CATEGORY( "3D" );
|
||||
DECLARE_CATEGORY( "Area" );
|
||||
|
||||
static void consoleInit();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue