Swing  1.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
Swing.GameObjectRecorder Class Reference
Inheritance diagram for Swing.GameObjectRecorder:
Swing.IRecorder

Classes

class  Data
 
class  RecordSetting
 

Public Types

enum  Options { DontDestroyOnLoad = 1, AttachedChild = 1 << 1, ViewCamera = 1 << 2, DummyObject = 1 << 3 }
 vs. ComponentRecorder.Options !!
 
enum  State {
  UnConfigured = 1, Added = 2, Registered = 4, Awaked = 1001,
  Destroyed = 1002, Marked = 1100, Recording = 1202, Playback = 1302,
  Invalid = 9999
}
 
enum  Validation {
  None, UnConfigured, UnRegistered, BlankLabel,
  ReservedLabel, DuplicatedLabel, UnRegisteredLabel, DontMatchOwnerOfLabel,
  LostParent, InvalidParent, InvalidOperation, NotValidated = 999,
  OK = 1000
}
 

Public Member Functions

bool Configure (string label=null)
 
bool StartNewFragment (IReplayDataContainer container, ReplayData newData=null)
 
void Stop ()
 
void UpdateFrame (float time)
 
void LateUpdateFrame (float time)
 
void EndOfFrame (float time)
 
void OnTimeJumped ()
 
bool StartPlayback (ReplayData replayData)
 
void StopPlayback ()
 
Validation PreValidate (bool isPrefab, bool toRegister, bool force=false)
 
void SetEmptyInRecording ()
 
bool StartRecording (int replayID=0)
 
void SetOptions (int optionValue)
 
bool AddCustomRecorder< T > (CustomRecorder< T > recorder)
 
void RevertSettings ()
 
void ClearSettings ()
 
List< RecordSettingGetRecordableList (bool force)
 
bool IsUnConfigured ()
 
bool IsRegistered ()
 
bool IsInGameplay ()
 
bool IsInRecording ()
 
bool IsInPlayback ()
 

Static Public Member Functions

static GameObjectRecorder AddTo (GameObject prefab, string label=null)
 
static bool RemoveFrom (GameObject prefab)
 

Public Attributes

int testPlaybackID = 0
 
Validation lastValidation = Validation.NotValidated
 
bool isEmptyParent = false
 
State state = State.UnConfigured
 

Properties

int replayID [get]
 
string Label [get]
 
bool isDontDestroyOnLoad [get]
 
bool isAttachedChild [get]
 
bool isRoot [get]
 
bool isDummyObject [get]
 
bool isViewCamera [get]
 
bool isActivate [get]
 
bool isDirtyFrame [get]
 
bool isRecordingStarted [get]
 
- Properties inherited from Swing.IRecorder
int replayID [get]
 

Detailed Description

GameObjectRecorder

Member Function Documentation

bool Swing.GameObjectRecorder.AddCustomRecorder< T > ( CustomRecorder< T >  recorder)

Register a custom recorder to the replay controller

Parameters
recorderCustom recorder
Returns
true if successful, false if erroneous

The documentation for this class was generated from the following files: