Time Rewizer  v.1.1
Created by: Mark Oostveen
MarkOostveen.TimeRewizer.PositionRotationRewizer.Snapshot Struct Reference

Snapshot data for PositionRotationVelocityRewinding More...

+ Inheritance diagram for MarkOostveen.TimeRewizer.PositionRotationRewizer.Snapshot:
+ Collaboration diagram for MarkOostveen.TimeRewizer.PositionRotationRewizer.Snapshot:

Public Member Functions

 Snapshot (Vector3 postion, Quaternion rotation)
 create new snapshot instance More...
 
SnapshotData GetValue ()
 get snapshot More...
 
void SetValue (SnapshotData input)
 set new snapshot More...
 
void SetValue (object input)
 set value, object will be casted into snapshotdata type More...
 
object ISnapShot. GetValue ()
 
void SetValue (T input)
 Set Snapshot More...
 

Detailed Description

Snapshot data for PositionRotationVelocityRewinding

Constructor & Destructor Documentation

◆ Snapshot()

MarkOostveen.TimeRewizer.PositionRotationRewizer.Snapshot.Snapshot ( Vector3  postion,
Quaternion  rotation 
)

create new snapshot instance

Parameters
postion
rotation
20  {
21  m_Value = new SnapshotData(postion, rotation);
22  }

Member Function Documentation

◆ GetValue() [1/2]

SnapshotData MarkOostveen.TimeRewizer.PositionRotationRewizer.Snapshot.GetValue ( )

get snapshot

Returns
31  {
32  return m_Value;
33  }

◆ GetValue() [2/2]

object ISnapShot. MarkOostveen.TimeRewizer.PositionRotationRewizer.Snapshot.GetValue ( )
54  {
55  return m_Value;
56  }

◆ SetValue() [1/3]

void MarkOostveen.TimeRewizer.ISnapShot< T >.SetValue ( input)
inherited

Set Snapshot

Parameters
input

◆ SetValue() [2/3]

void MarkOostveen.TimeRewizer.PositionRotationRewizer.Snapshot.SetValue ( SnapshotData  input)

set new snapshot

Parameters
input
40  {
41  m_Value = input;
42  }

◆ SetValue() [3/3]

void MarkOostveen.TimeRewizer.PositionRotationRewizer.Snapshot.SetValue ( object  input)

set value, object will be casted into snapshotdata type

Parameters
input
49  {
50  m_Value = (SnapshotData)input;
51  }