Show / Hide Table of Contents

Class WorldTime

Inheritance
System.Object
WorldTime
Implements
INetObject
IStorage
ISerializable
INetObjectPriority
Namespace: Eco.Simulation.Time
Assembly: Eco.Simulation.dll
Syntax
public sealed class WorldTime : Singleton<WorldTime>, INetObject, IStorage, ISerializable, INetObjectPriority

Constructors

WorldTime()

Declaration
public WorldTime()

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
public int ID { get; }
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
Type Description
IPersistent

TimeOfDay

Declaration
public static float TimeOfDay { get; }
Property Value
Type Description
System.Single

UpdateChannel

Declaration
public NetworkChannel UpdateChannel { get; }
Property Value
Type Description
NetworkChannel

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
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean

IsRelevant(INetObjectViewer)

Declaration
public bool IsRelevant(INetObjectViewer viewer)
Parameters
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean

IsUpdated(INetObjectViewer)

Declaration
public bool IsUpdated(INetObjectViewer viewer)
Parameters
Type Name Description
INetObjectViewer viewer
Returns
Type Description
System.Boolean

OnDeserialized()

Declaration
public void OnDeserialized()

ReceiveInitialState(BSONObject)

Declaration
public void ReceiveInitialState(BSONObject bsonObj)
Parameters
Type Name Description
BSONObject bsonObj

ReceiveUpdate(BSONObject)

Declaration
public void ReceiveUpdate(BSONObject bsonObj)
Parameters
Type Name Description
BSONObject bsonObj

Reset()

Declaration
public static void Reset()

ResetOffset()

Declaration
public static void ResetOffset()

SendInitialState(BSONObject, INetObjectViewer)

Declaration
public void SendInitialState(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
Type Name Description
BSONObject bsonObj
INetObjectViewer viewer

SendUpdate(BSONObject, INetObjectViewer)

Declaration
public void SendUpdate(BSONObject bsonObj, INetObjectViewer viewer)
Parameters
Type Name Description
BSONObject bsonObj
INetObjectViewer viewer

TempWorldTime()

Declaration
public static Singleton<WorldTime>.Temp TempWorldTime()
Returns
Type Description
Singleton.Temp<>

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

INetObject
IStorage
ISerializable
INetObjectPriority
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾