![]() |
Plasma Engine
2.0
|
Internal flags of game objects or components. More...
#include <Declarations.h>
Classes | |
struct | Bits |
Public Types | |
enum | Enum { None = 0 , Dynamic = PL_BIT(0) , ForceDynamic = PL_BIT(1) , ActiveFlag = PL_BIT(2) , ActiveState = PL_BIT(3) , Initialized = PL_BIT(4) , Initializing = PL_BIT(5) , SimulationStarted = PL_BIT(6) , SimulationStarting = PL_BIT(7) , UnhandledMessageHandler = PL_BIT(8) , ChildChangesNotifications = PL_BIT(9) , ComponentChangesNotifications = PL_BIT(10) , StaticTransformChangesNotifications = PL_BIT(11) , ParentChangesNotifications = PL_BIT(12) , CreatedByPrefab = PL_BIT(13) , UserFlag0 = PL_BIT(24) , UserFlag1 = PL_BIT(25) , UserFlag2 = PL_BIT(26) , UserFlag3 = PL_BIT(27) , UserFlag4 = PL_BIT(28) , UserFlag5 = PL_BIT(29) , UserFlag6 = PL_BIT(30) , UserFlag7 = PL_BIT(31) , Default = None } |
using | StorageType = plUInt32 |
Internal flags of game objects or components.
enum plObjectFlags::Enum |
Enumerator | |
---|---|
Dynamic | Usually detected automatically. A dynamic object will not cache render data across frames. |
ForceDynamic | Set by the user to enforce the 'Dynamic' mode. Necessary when user code (or scripts) should change objects, and the automatic detection cannot know that. |
ActiveFlag | The object/component has the 'active flag' set. |
ActiveState | The object/component and all its parents have the active flag. |
Initialized | The object/component has been initialized. |
Initializing | The object/component is currently initializing. Used to prevent recursions during initialization. |
SimulationStarted | OnSimulationStarted() has been called on the component. |
SimulationStarting | Used to prevent recursion during OnSimulationStarted() |
UnhandledMessageHandler | For components, when a message is not handled, a virtual function is called. |
ChildChangesNotifications | The object should send a notification message when children are added or removed. |
ComponentChangesNotifications | The object should send a notification message when components are added or removed. |
StaticTransformChangesNotifications | The object should send a notification message if it is static and its transform changes. |
ParentChangesNotifications | The object should send a notification message when the parent is changes. |
CreatedByPrefab | Such flagged objects and components are ignored during scene export (see plWorldWriter) and will be removed when a prefab needs to be re-instantiated. |