struct BearMG::RoomLinks
- BearMG::RoomLinks
- Struct
- Value
- Object
Included Modules
- Indexable(BearMG::Room)
Defined in:
bearlib/mapgen.crConstructors
Instance Method Summary
- #clone
- #copy_with(owner _owner = @owner)
- #owner : Room
-
#size
Returns the number of elements in this container.
-
#unsafe_fetch(index : Int) : Room
Returns the element at the given index, without doing any bounds check.
Constructor Detail
Instance Method Detail
def size
#
Description copied from module Indexable(BearMG::Room)
Returns the number of elements in this container.
Description copied from module Indexable(BearMG::Room)
Returns the element at the given index, without doing any bounds check.
Indexable
makes sure to invoke this method with index in 0...size
,
so converting negative indices to positive ones is not needed here.
Clients never invoke this method directly. Instead, they access
elements with #[](index)
and #[]?(index)
.
This method should only be directly invoked if you are absolutely sure the index is in bounds, to avoid a bounds check for a small boost of performance.