Class RoomCollection
Intern room dictionary
Declaration
Implements:
Global.IEqualityComparer<OdinNative.Odin.Room.Room>
Properties
this[string]
Try to get room by name
Declaration
Count
Count of rooms in the collection
Declaration
IsRemoveOnly
Indicates whether elements can be removed from the collection
Declaration
Methods
Add(Room)
Add a room to the collection
Declaration
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Room.Room | item | room to add |
Clear()
Free and empty the collection
Declaration
Contains(string)
Determines whether the room by name/token is in the collection
Declaration
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
System.String | key | room key of the room |
Contains(Room)
Determines whether the room is in the collection
Declaration
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Room.Room | item | room |
CopyTo(Room[], int)
Copies rooms of the collection to an array
Declaration
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Room.Room[] | array | target array |
System.Int32 | arrayIndex | array offset |