Counter is a value that automatically changes with time. It's ideal for resources.
More...
|
| double | storedValue [get] |
| | Actual stored value. In most cases you will want to use 'value' instead. More...
|
| |
| double | value [get, set] |
| | Current value. More...
|
| |
Counter is a value that automatically changes with time. It's ideal for resources.
| TNet.Counter.Counter |
( |
double |
value, |
|
|
double |
rate = 0.0, |
|
|
double |
min = 0.0, |
|
|
double |
max = double.MaxValue |
|
) |
| |
| virtual Counter TNet.Counter.Clone |
( |
| ) |
|
|
virtual |
Create a copy of this counter.
| virtual void TNet.Counter.CopyTo |
( |
Counter |
c | ) |
|
|
virtual |
Copy the counter's values over to another.
| virtual void TNet.Counter.Deserialize |
( |
BinaryReader |
reader | ) |
|
|
virtual |
| virtual void TNet.Counter.Deserialize |
( |
DataNode |
node | ) |
|
|
virtual |
| double TNet.Counter.GetPercent |
( |
double |
delta = 1.0 | ) |
|
Given the time delta, calculate how long the resource will last relative to that delta.
| virtual void TNet.Counter.Serialize |
( |
BinaryWriter |
writer | ) |
|
|
virtual |
| virtual void TNet.Counter.Serialize |
( |
DataNode |
node | ) |
|
|
virtual |
| override string TNet.Counter.ToString |
( |
| ) |
|
| double TNet.Counter.storedValue |
|
get |
Actual stored value. In most cases you will want to use 'value' instead.
| double TNet.Counter.value |
|
getset |
The documentation for this class was generated from the following file: