Open Reality Reference Guide
|
|
Go to the documentation of this file. 1 #ifndef __FBCONSTRUCTIONHISTORY_H__
2 #define __FBCONSTRUCTIONHISTORY_H__
43 #include <kaydaradef.h>
48 #define FBSDK_DLL K_DLLIMPORT
55 class KConstructionOperation;
57 #ifdef FBSDKUseNamespace
58 namespace FBSDKNamespace {
86 const char* GetLanguage();
87 int GetLanguageVersion();
88 const char* GetScript();
89 const char* GetOrigin();
91 bool GetExecuteAsLocalOperation();
137 KConstructionOperation* mOperation;
138 bool mExecuteAsLocal;
277 #ifdef FBSDKUseNamespace
FBConstructionOperation()
Constructor.
void SetOrigin(const char *origin)
SetOrigin Set operation's original creator.
@ kFBConstructionHistory_Listening
Construction history is currently listening and recording operations.
void SetScript(const char *script)
SetScript Set the script content for this operation.
void NetUndo(kInt64 key)
NetUndo Perform network undo operation.
FBConstructionHistoryState GetState()
GetState returns the current state of the construction history manager.
FBPropertyEvent OnChange
Event: History changed.
void NetDelete(FBComponent *component, kInt64 key)
NetDelete Network delete with support for Network Undo.
void GetDeltaOperations(FBConstructionOperationArray *pOperations, int sinceCommandId=-1)
GetDeltaOperations Get the list of delta operations in the construction history.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Access to global construction history functionality.
int GetCommandId()
GetCommandId Returns the index of the command that was executed in the construction history.
void SetLanguage(const char *language)
SetLanguage Set the script language for this operation.
int RunOperation(FBConstructionOperation &operation, FBString &out_errors)
RunOperation Runs an operation.
#define FB_DEFINE_ARRAY(DllTag, Type)
Define an array (template) for a component (discard the FB..).
static FBConstructionHistory & TheOne()
Get the global construction history.
#define __FBClassDeclare(Name, Parent)
For internal use only.
Event to retrieve the command id of a construction history change.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
A template class for arrays.
FBConstructionHistoryState
Construction history manager state.
void SetLanguageVersion(int version)
SetLanguageVersion Set the script language interpreter's version that this operation should be interp...
FBConstructionOperation is used to represent an operation in the construction history.
void GetScriptOutput(FBString &script, FBString &errors)
GetScriptOutput Returns the output from the scripting engine.
PropertyEvent: Base event class.
Simple wrapper for construction operation arrays.
FBConstructionOperationArray()
Constructor.
Template class to contain an array of items.
Definition of the class FBPlug and related enums and utility functions.
FB_DEFINE_COMPONENT(K_DLLIMPORT, AnimationNode)
Animation node class.
void SetExecuteAsLocalOperation(bool bIsLocal)
SetExecuteAsLocalOperation Whether to execute this operation as local or remote.
FBConstructionHistory()
Constructor.
@ kFBConstructionHistory_Replaying
Construction history is currently replaying an operation.
~FBConstructionOperationArray()
Destructor.
MotionBuilder SDK base class.
void SetCommandId(int commandId)
SetCommandId Set the operation's Id so that operation transactions can be resolved properly (eg: comm...
FBEventConstructionHistoryChange(HKEventBase pEvent)
Constructor.