Region

Region

class

Square of the world map holding sources and structures

Fields

NameTypeDescription
pos Vec2i Region position in RegionMap grid

Functions

Region:add_structure(structure)

Add structure to this Region

structure MapStructure Structure to place

Region:add_source(source)

Add source to this Region

source SourceData Deposit 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)
Inherited from Object (3)

Used by