Class RoomCollection
Intern room dictionary
Assembly: cs.temp.dll.dll
Implements:
Odin.IEqualityComparer<OdinNative.Wrapper.Room.Room>
Properties
this[string]
Try to get room by name
this[ulong]
Get room by Id
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.Wrapper.Room.Room | item | room to add |
Clear()
Free and empty the collection
Contains(Room)
Determines whether the room is in the collection
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Wrapper.Room.Room | item | room |
Equals(Room, Room)
Compares two rooms by name
Returns
System.Boolean
: is equal
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Wrapper.Room.Room | x | room |
OdinNative.Wrapper.Room.Room | y | room |
GetEnumerator()
Get enumerator for iteration
Returns
Odin.IEnumerator<OdinNative.Wrapper.Room.Room>
: enumerator### GetHashCode(Room)
Default GetHashCode
Returns
System.Int32
: hash code
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Wrapper.Room.Room | obj | room |
Remove(ulong)
Removes the room from this collection
Returns
System.Boolean
: is removed
Parameters
Type | Name |
---|---|
System.UInt64 | id |
Close(Room)
Close a room
Returns
System.Boolean
: true if room to close found
Parameters
Type | Name | Description |
---|---|---|
OdinNative.Wrapper.Room.Room | room | room |
Close(ulong)
Close a room
Returns
System.Boolean
: true if room to close found
Parameters
Type | Name |
---|---|
System.UInt64 | id |
Implements
Odin.IEqualityComparer<OdinNative.Wrapper.Room.Room>