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