Class RoomCollection
Intern room dictionary
Implements:
Global.IEqualityComparer<OdinNative.Odin.Room.Room>
Properties
this[string]
Try to get room by name
Count
Count of rooms in the collection
IsRemoveOnly
Indicates whether elements can be removed from the collection
Methods
Add(Room)
Add a room to the collection
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
Contains(string)
Determines whether the room by name/token is in the collection
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
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
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Room.Room[] | array | target array |
System.Int32 | arrayIndex | array offset |
Equals(Room, Room)
Compares two rooms by name
Returns
System.Boolean
: is equal
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Room.Room | x | room |
OdinNative.Odin.Room.Room | y | room |
GetEnumerator()
Get enumerator for iteration
Returns
Global.IEnumerator<OdinNative.Odin.Room.Room>
: enumerator### GetHashCode(Room)
Default GetHashCode
Returns
System.Int32
: hash code
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Room.Room | obj | room |
Remove(string)
Removes the room from this collection
Returns
System.Boolean
: is removed
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Room name |
Remove(Room)
Removes the room from this collection
Returns
System.Boolean
: is removed
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Odin.Room.Room | item | room |
Leave(string)
Get the room and leave
Parameters
Type | Name | Description |
---|---|---|
System.String | key | room name |
Implements
Global.IEqualityComparer<OdinNative.Odin.Room.Room>