跳到主要内容
版本:Next

Struct TimeComponent

Namespace: ReadyM.Relay.Common.Oblivion.ECS.Components
Assembly: ReadyM.Relay.Common.Oblivion.dll

Holds the global time state of the game world.

public struct TimeComponent : IComponent, INetSerializable

Implements

IComponent, INetSerializable

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

GameDaysPassed

public float GameDaysPassed { get; set; }

Property Value

float

GameHour

public float GameHour { get; set; }

Property Value

float

TimeScale

public float TimeScale { get; set; }

Property Value

float

Methods

Assign(in TimeComponent)

public void Assign(in TimeComponent value)

Parameters

value TimeComponent

Deserialize(NetDataReader)

public void Deserialize(NetDataReader reader)

Parameters

reader NetDataReader

Serialize(NetDataWriter)

public void Serialize(NetDataWriter writer)

Parameters

writer NetDataWriter

  • Properties
    • GameDaysPassed
    • GameHour
    • TimeScale
  • Methods
    • Assign(in TimeComponent)
    • Deserialize(NetDataReader)
    • Serialize(NetDataWriter)