Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
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

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

Member Function Documentation

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

Property Documentation

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

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