Region
classSquare of the world map holding sources and structures
Fields
| Name | Type | Description |
|---|---|---|
| pos | Vec2i | Region position in RegionMap grid |
Functions
Region:add_structure(structure)
Add structure to this Region
| structure | MapStructure | Structure to place |
Standard members (4)
Generated for every class of this kind by the game's codegen, not written for Region.
| Region.cast(object) | Trying to cast Object into Region |
| Region.get_class() | Return Region class object |
| Region.new(parent, name) | Creates a new Region instance |
| Region.new_simple() | Creates a new Region instance |
Inherited from Instance (1)
- Instance:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (3)
- name Object name
- Object.find(name) Find an already loaded object by name
- Object:get_class() Class of this object
Used by
- RegionMap.get_region return
- RegionMap.find_region return