|
|
|
|
|
|
|
__init__(self,
**kwargs)
Used for initialization code that does not require any other
components. |
source code
|
|
|
|
|
|
|
cancel_current_production(self)
Cancels the current production and proceeds to the next one, if there
is one |
source code
|
|
|
|
|
load(self,
db,
worldid)
This does on load what __init() and initalize() together do on
constructions at runtime. |
source code
|
|
|
|
|
save(self,
db)
Will do nothing, but will be always called in componentholder code,
even if not implemented. |
source code
|
|
|
start_next_production(self)
Starts the next production that is in the queue, if there is one. |
source code
|
|
|
|
|
|
|
|
|
|
|
_on_production_change(self)
Makes the instance act according to the producers current state |
source code
|
|
|
|
|
_update_decommissioned_icon(self)
Add or remove decommissioned icon. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
create_production_line(self,
id)
Creates a production line instance, this is meant only for data
transfer and READONLY use! If you want to use production lines for
anything else, go the proper way of the production class. |
source code
|
|
|
|
|
|
|
|
|
get_production_progress(self)
Returns the current progress of the active production. |
source code
|
|
|
get_productions(self)
Returns all productions, inactive and active ones, as list |
source code
|
|
|
|
|
has_production_line(self,
prod_line_id)
Checks if this instance has a production with a certain production
line id |
source code
|
|
|
|
|
is_active(self,
production=None)
Checks if a production, or the at least one production if production
is None, is active |
source code
|
|
|
|
|
|
|
|
|
set_active(self,
production=None,
active=True)
Pause or unpause a production (aka set it active/inactive). |
source code
|
|
|
|
|
update_capacity_utilization(self)
Called by the scheduler to update the utilization regularly |
source code
|
|
|
|
|
|