levelz.block ============ .. py:module:: levelz.block Classes ------- .. autoapisummary:: levelz.block.Block levelz.block.LevelObject Module Contents --------------- .. py:class:: Block(name: str, properties: dict[str, object] = {}) Represents a Block in a Level. .. py:attribute:: _name :type: str :value: '' .. py:attribute:: _properties :type: dict[str, object] .. py:property:: name Returns the name of the Block. .. py:property:: properties Returns an immutable copy of the properties for the Block. .. py:method:: __str__() .. py:method:: __eq__(other) .. py:class:: LevelObject(block: Block | str, coordinate: levelz.coord.Coordinate | list[int | float]) Utility Object for representing a Level Block and its Coordinate. .. py:attribute:: _block :type: Block .. py:attribute:: _coordinate :type: levelz.coord.Coordinate .. py:property:: block Returns the Block of the LevelObject. .. py:property:: coordinate Returns the Coordinate of the LevelObject. .. py:method:: __str__() .. py:method:: __eq__(other)