Time Rewizer  v.1.1
Created by: Mark Oostveen
MarkOostveen.TimeRewizer.FloatWithDefaultRewizer Class Reference

Rewinding type with a default value More...

+ Inheritance diagram for MarkOostveen.TimeRewizer.FloatWithDefaultRewizer:
+ Collaboration diagram for MarkOostveen.TimeRewizer.FloatWithDefaultRewizer:

Public Member Functions

void Initialize (float valuewhilerewinding, bool usevaluewhilerewinding, GameObject linkedGameObject)
 Initialize Rewinding object More...
 
override void ForceRewind (ISnapShot variableStruct)
 Forces a value to be used for rewinding next frame, only avalible when in baked mode More...
 

Public Attributes

bool m_LastRewindingValue
 Use ValueWhileRewinding when rewinding instead of saved values More...
 

Package Functions

override void OnFixedUpdateNormal ()
 Normal Update More...
 
override void OnFixedUpdateBaked ()
 Baked Update More...
 

Properties

float ValueWhileRewinding [set]
 Value property will be while rewinding More...
 

Detailed Description

Rewinding type with a default value

Member Function Documentation

◆ ForceRewind()

override void MarkOostveen.TimeRewizer.FloatWithDefaultRewizer.ForceRewind ( ISnapShot  variableStruct)

Forces a value to be used for rewinding next frame, only avalible when in baked mode

Parameters
variableStruct
39  {
40  m_SnapshotValue = (Snapshot)variableStruct;
41  m_ForceRewind = true;
42  }

◆ Initialize()

void MarkOostveen.TimeRewizer.FloatWithDefaultRewizer.Initialize ( float  valuewhilerewinding,
bool  usevaluewhilerewinding,
GameObject  linkedGameObject 
)

Initialize Rewinding object

Parameters
valuewhilerewinding
usevaluewhilerewinding
linkedGameObject
28  {
29  Initialize(linkedGameObject, true);
30  ValueWhileRewinding = valuewhilerewinding;
31  m_LastRewindingValue = usevaluewhilerewinding;
32  }

◆ OnFixedUpdateBaked()

override void MarkOostveen.TimeRewizer.FloatWithDefaultRewizer.OnFixedUpdateBaked ( )
package

Baked Update

27  {
28  if (Rewinding || Paused || m_ForceRewind)
29  {
30  m_Value = ValueWhileRewinding;
31  }
32  }

◆ OnFixedUpdateNormal()

override void MarkOostveen.TimeRewizer.FloatWithDefaultRewizer.OnFixedUpdateNormal ( )
package

Normal Update

12  {
13  if (Rewinding || Paused)
14  {
15  m_Value = ValueWhileRewinding;
16  }
17  else
18  {
19  CreateSnapshot();
20  }
21  }

Member Data Documentation

◆ m_LastRewindingValue

bool MarkOostveen.TimeRewizer.FloatWithDefaultRewizer.m_LastRewindingValue

Use ValueWhileRewinding when rewinding instead of saved values

Property Documentation

◆ ValueWhileRewinding

float MarkOostveen.TimeRewizer.FloatWithDefaultRewizer.ValueWhileRewinding
set

Value property will be while rewinding

19 { set; private get; }