Class WorldTime
Inheritance
System.Object
WorldTime
Assembly: Eco.Simulation.dll
Syntax
public sealed class WorldTime : Singleton<WorldTime>, INetObject, IStorage, ISerializable, INetObjectPriority
Constructors
WorldTime()
Declaration
Fields
AlwaysUpdateClientTime
Declaration
public bool AlwaysUpdateClientTime
Field Value
| Type |
Description |
| System.Boolean |
|
RealDateTimeAtLoad
Declaration
public static readonly DateTime RealDateTimeAtLoad
Field Value
| Type |
Description |
| System.DateTime |
|
Properties
Active
Declaration
public bool Active { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Day
Declaration
public static double Day { get; }
Property Value
| Type |
Description |
| System.Double |
|
ID
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
NetObjectCreationRealtime
Declaration
public double NetObjectCreationRealtime { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
Paused
Declaration
public static bool Paused { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Seconds
Declaration
public static double Seconds { get; }
Property Value
| Type |
Description |
| System.Double |
|
StorageHandle
Declaration
public IPersistent StorageHandle { get; set; }
Property Value
TimeOfDay
Declaration
public static float TimeOfDay { get; }
Property Value
| Type |
Description |
| System.Single |
|
UpdateChannel
Declaration
public NetworkChannel UpdateChannel { get; }
Property Value
Methods
ForceAdvanceTime(Double)
Declaration
public static void ForceAdvanceTime(double val)
Parameters
| Type |
Name |
Description |
| System.Double |
val |
|
FromRealTime(Double)
Declaration
public static double FromRealTime(double realTime)
Parameters
| Type |
Name |
Description |
| System.Double |
realTime |
|
Returns
| Type |
Description |
| System.Double |
|
GetSeconds(Double)
Declaration
public static double GetSeconds(double realTime)
Parameters
| Type |
Name |
Description |
| System.Double |
realTime |
|
Returns
| Type |
Description |
| System.Double |
|
IsNight()
Declaration
public static bool IsNight()
Returns
| Type |
Description |
| System.Boolean |
|
IsNotRelevant(INetObjectViewer)
Declaration
public bool IsNotRelevant(INetObjectViewer viewer)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IsRelevant(INetObjectViewer)
Declaration
public bool IsRelevant(INetObjectViewer viewer)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IsUpdated(INetObjectViewer)
Declaration
public bool IsUpdated(INetObjectViewer viewer)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
OnDeserialized()
Declaration
public void OnDeserialized()
ReceiveInitialState(BSONObject)
Declaration
public void ReceiveInitialState(BSONObject bsonObj)
Parameters
ReceiveUpdate(BSONObject)
Declaration
public void ReceiveUpdate(BSONObject bsonObj)
Parameters
Reset()
Declaration
public static void Reset()
ResetOffset()
Declaration
public static void ResetOffset()
SendInitialState(BSONObject, INetObjectViewer)
Declaration
public void SendInitialState(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
SendUpdate(BSONObject, INetObjectViewer)
Declaration
public void SendUpdate(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
TempWorldTime()
Declaration
public static Singleton<WorldTime>.Temp TempWorldTime()
Returns
Till(Double)
Declaration
public static string Till(double sec)
Parameters
| Type |
Name |
Description |
| System.Double |
sec |
|
Returns
| Type |
Description |
| System.String |
|
TimeChanged()
Declaration
public static void TimeChanged()
WithTempWorldTime(Action)
Declaration
public static void WithTempWorldTime(Action action)
Parameters
| Type |
Name |
Description |
| System.Action |
action |
|
Implements