Skip to content

Class: RoomComponent ​

csharp
[RequireComponent(typeof(Room))]
public class RoomComponent : DewNetworkBehaviour, ILogicUpdate

Properties ​

NameDeclarationDescription
isRevisitpublic bool isRevisit { get; }
isRoomActivepublic bool isRoomActive { get; }
roompublic Room room { get; }

Methods ​

ActiveLogicUpdate(float) ​

csharp
protected virtual void ActiveLogicUpdate(float dt)

Parameters:

NameTypeDescription
dtfloat

Awake() ​

csharp
protected override void Awake()

LogicUpdate(float) ​

csharp
public override void LogicUpdate(float dt)

Parameters:

NameTypeDescription
dtfloat

OnRoomStart() ​

Called everywhere when this room has finished loading and needs setup.

csharp
public virtual void OnRoomStart()

OnRoomStartServer() ​

Called on server when this room has finished loading and needs setup.

csharp
public virtual void OnRoomStartServer()

OnRoomStop() ​

Called everywhere when next room is about to load and this room is cleaning up.

csharp
public virtual void OnRoomStop()

OnRoomStopServer() ​

Called on server when next room is about to load and this room is cleaning up.Populate save data here.

csharp
public virtual void OnRoomStopServer()

Maintained by the Shape of Dreams Modding Community