Time Rewizer  v.1.1
Created by: Mark Oostveen
MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewizeRecorder< RecordingValueType > Class Template Reference
+ Inheritance diagram for MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewizeRecorder< RecordingValueType >:
+ Collaboration diagram for MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewizeRecorder< RecordingValueType >:

Public Member Functions

void Record (ISnapShot< RecordingValueType > snapshot)
 
void Record (T snapshot)
 Recording Method More...
 

Protected Attributes

ICache< InternalValueBaker.PropertyInfom_Cache
 
Type m_ReflectedMemberType
 
Type m_ReflectedValueType
 
PropertyInspectorCustomEditorWindow m_ReflectedWindow
 

Package Functions

void Initialize (PropertyInspectorCustomEditorWindow targetObject)
 

Package Attributes

Action< ISnapShot< RecordingValueType > > GetRecordingMethod => Record
 

Properties

bool Recording [get, set]
 

Member Function Documentation

◆ Initialize()

void MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewindRecorder.Initialize ( PropertyInspectorCustomEditorWindow  targetObject)
packageinherited
43  {
44  m_Cache = EditorRewizeSystemUtility.GetCache<InternalValueRewizeWindowCache>(
45  targetObject.m_AttachedScript.Gameobject, PropertySelectionEditorWindow.CACHENAME);
46  m_ReflectedWindow = targetObject;
47  m_ReflectedValueType = targetObject.PropertyInfo.m_FieldInfo.FieldType;
48  m_ReflectedMemberType = typeof(InternalValueBaker.PropertyValue<>).MakeGenericType(m_ReflectedValueType);
49  }
+ Here is the caller graph for this function:

◆ Record() [1/2]

void MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewizeRecorder< RecordingValueType >.Record ( ISnapShot< RecordingValueType >  snapshot)
14  {
15  if (m_ReflectedWindow.NewMode == PlayModeStateChange.ExitingPlayMode) return;
16 
17  dynamic instance = RewizeUtilityFunctions.CreateInstanceByType(m_ReflectedMemberType);
18  dynamic value = RewizeUtilityFunctions.CreateInstanceByType(m_ReflectedValueType);
19  value.ReplaceSnapshot(snapshot); //can't be null
20  instance.m_Value = value; //can't be null
21  InternalValueBaker.PropertyInfo property = m_ReflectedWindow.PropertyInfo;
22  property.m_Values.Add(instance);
24  }
+ Here is the call graph for this function:

◆ Record() [2/2]

void MarkOostveen.TimeRewizer.Editor.Baking.IRecorder< T >.Record ( snapshot)
inherited

Recording Method

Parameters
snapshot

Member Data Documentation

◆ GetRecordingMethod

Action<ISnapShot<RecordingValueType> > MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewizeRecorder< RecordingValueType >.GetRecordingMethod => Record
package

◆ m_Cache

ICache<InternalValueBaker.PropertyInfo> MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewindRecorder.m_Cache
protectedinherited

◆ m_ReflectedMemberType

Type MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewindRecorder.m_ReflectedMemberType
protectedinherited

◆ m_ReflectedValueType

Type MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewindRecorder.m_ReflectedValueType
protectedinherited

◆ m_ReflectedWindow

PropertyInspectorCustomEditorWindow MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewindRecorder.m_ReflectedWindow
protectedinherited

Property Documentation

◆ Recording

bool MarkOostveen.TimeRewizer.Editor.Baking.InternalValueRewindRecorder.Recording
getsetinherited
40 { get; set; }