Empeld
Empeld plugin documentation.
pluginbase.Helpers.Data.Versioned< T > Class Template Reference

Public Member Functions

 Versioned ()
 
 Versioned (T val, int version)
 
bool IsOutdated (int currVersion)
 
Update (T val, int version)
 

Properties

int Version [get]
 
Value [get]
 

Constructor & Destructor Documentation

◆ Versioned() [1/2]

13  {
14  _version = -1;
15  }

◆ Versioned() [2/2]

pluginbase.Helpers.Data.Versioned< T >.Versioned ( val,
int  version 
)
18  {
19  Value = val;
20  }
T Value
Definition: Versioned.cs:10

Member Function Documentation

◆ IsOutdated()

bool pluginbase.Helpers.Data.Versioned< T >.IsOutdated ( int  currVersion)
23  {
24  return _version != currVersion;
25  }

◆ Update()

T pluginbase.Helpers.Data.Versioned< T >.Update ( val,
int  version 
)
28  {
29  _version = Version;
30  Value = val;
31  return val;
32  }
int Version
Definition: Versioned.cs:8
T Value
Definition: Versioned.cs:10

Property Documentation

◆ Value

◆ Version

int pluginbase.Helpers.Data.Versioned< T >.Version
get

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