跳到主要内容
版本: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

GameDaysPassedNotifyChanged(int)

public void GameDaysPassedNotifyChanged(int id)

Parameters

id int

GameHourNotifyChanged(int)

public void GameHourNotifyChanged(int id)

Parameters

id int

GetChangeComponent()

public Type GetChangeComponent()

Returns

Type

Serialize(NetDataWriter)

public void Serialize(NetDataWriter writer)

Parameters

writer NetDataWriter

TimeScaleNotifyChanged(int)

public void TimeScaleNotifyChanged(int id)

Parameters

id int

  • Properties
    • GameDaysPassed
    • GameHour
    • TimeScale
  • Methods
    • Assign(in TimeComponent)
    • Deserialize(NetDataReader)
    • GameDaysPassedNotifyChanged(int)
    • GameHourNotifyChanged(int)
    • GetChangeComponent()
    • Serialize(NetDataWriter)
    • TimeScaleNotifyChanged(int)