mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Expands/Cleans up a lot of the asset functionality, including management, file association, and creation/importing
This commit is contained in:
parent
ba2e9f1547
commit
ddfc416418
73 changed files with 4468 additions and 1876 deletions
|
|
@ -124,6 +124,7 @@ Entity::Entity()
|
|||
|
||||
mGameObjectAssetId = StringTable->insert("");
|
||||
|
||||
mDirtyGameObject = false;
|
||||
}
|
||||
|
||||
Entity::~Entity()
|
||||
|
|
@ -156,8 +157,11 @@ void Entity::initPersistFields()
|
|||
endGroup("Misc");
|
||||
|
||||
addGroup("GameObject");
|
||||
addProtectedField("gameObjectName", TypeGameObjectAssetPtr, Offset(mGameObjectAsset, Entity), &_setGameObject, &defaultProtectedGetFn,
|
||||
addProtectedField("GameObject", TypeGameObjectAssetPtr, Offset(mGameObjectAsset, Entity), &_setGameObject, &defaultProtectedGetFn,
|
||||
"The asset Id used for the game object this entity is based on.");
|
||||
|
||||
addField("dirtyGameObject", TypeBool, Offset(mDirtyGameObject, Entity), "If this entity is a GameObject, it flags if this instance delinates from the template.",
|
||||
AbstractClassRep::FieldFlags::FIELD_HideInInspectors);
|
||||
endGroup("GameObject");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue