Class RoomUtil
General utilities for room management
Inheritance
System.Object
RoomUtil
Namespace: Eco.Gameplay.Rooms
Assembly: Eco.Gameplay.dll
Syntax
public static class RoomUtil : Object
Methods
CalculateRoomForObject(Deed, WorldObject)
Declaration
public static Room CalculateRoomForObject(Deed deed, WorldObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Deed | deed | |
| WorldObject | obj |
Returns
| Type | Description |
|---|---|
| Room |
UpdateRoomWithNewObjects(Room, IEnumerable<WorldObject>, IEnumerable<WorldObject>)
Updates room object references when the room's contained objects change. Removes room reference from objects no longer in the room and sets room reference for new objects.
Declaration
public static void UpdateRoomWithNewObjects(Room room, IEnumerable<WorldObject> oldObjects, IEnumerable<WorldObject> newObjects)
Parameters
| Type | Name | Description |
|---|---|---|
| Room | room | The room being updated |
| System.Collections.Generic.IEnumerable<WorldObject> | oldObjects | Previous objects in the room |
| System.Collections.Generic.IEnumerable<WorldObject> | newObjects | New objects in the room |