Misc¶
-
class Recipe :
Prototype
¶ Crafting-recipe prototype used by machines and crafting UIs
-
ticks:
integer
¶ Craft time in engine ticks
-
default_locked:
boolean
¶ If true, the recipe starts hidden until research unlocks it.
-
locked:
boolean
¶ Currently locked if true
-
productivity:
integer
¶ Percentage bonus (e.g. 20 = +20 %)
-
input:
RecipeInventory
¶ Read/write container of required items
-
output:
RecipeInventory
¶ Read/write container of produced items
-
tier:
integer
¶ Recipe tier used for speed scaling: every tier above the machine tier halves speed; every tier below doubles it.
-
start_tier:
integer
¶ Machine-unlock tier (same for all its recipes); lets you compute the recipe’s level relative to that minimum.
-
staticmethod new(name:
string
)Recipe
¶ Creates a new Recipe static object
- Parameters:
name (
string
) – The name of the object
-
staticmethod find(name:
string
)Recipe
¶ Searching for Recipe in db
- Parameters:
name (
string
) – The name of the object
-
staticmethod get_class()
Class
¶ Return Recipe class object
-
ticks:
-
class StaticTip :
Prototype
¶ -
staticmethod new(name:
string
)StaticTip
¶ Creates a new StaticTip static object
- Parameters:
name (
string
) – The name of the object
-
staticmethod find(name:
string
)StaticTip
¶ Searching for StaticTip in db
- Parameters:
name (
string
) – The name of the object
-
staticmethod get_class()
Class
¶ Return StaticTip class object
-
staticmethod new(name:
-
class StaticProp :
StaticObject
¶ -
project_to_terrain_power:
number
¶ undocumented
-
additive_elevation:
number
¶ undocumented
-
cull_begin:
number
¶ undocumented
-
cull_end:
number
¶ undocumented
-
maximum_height:
number
¶ undocumented
-
minimum_height:
number
¶ undocumented
-
floating:
boolean
¶ undocumented
-
is_big:
boolean
¶ undocumented
-
mesh:
StaticMesh
¶ undocumented
-
no_collision:
boolean
¶ undocumented
-
is_emitting:
boolean
¶ undocumented
-
break_chance:
integer
¶ Break chance in percents
-
project_to_terrain_power:
-
class PropListData :
Struct
¶ Structure that stores several StaticProp records (prop variations) with shared spawn chance
-
chance:
number
¶ Spawn probability 0.0–1.0
-
props:
StaticProp
[]¶ List of prop assets (prop variations)
-
chance:
-
class StaticPropList :
Prototype
¶ Prototype asset that owns several PropListData records
-
data:
PropListData
[]¶ undocumented
-
staticmethod new(name:
string
)StaticPropList
¶ Creates a new StaticPropList static object
- Parameters:
name (
string
) – The name of the object
-
staticmethod find(name:
string
)StaticPropList
¶ Searching for StaticPropList in db
- Parameters:
name (
string
) – The name of the object
-
staticmethod get_class()
Class
¶ Return StaticPropList class object
-
staticmethod cast(object:
Object
)StaticPropList
¶ Trying to cast Object into StaticPropList
- Parameters:
object (
Object
) – to cast
-
data:
-
class WorldGenerator :
Prototype
¶ -
staticmethod new(name:
string
)WorldGenerator
¶ Creates a new WorldGenerator static object
- Parameters:
name (
string
) – The name of the object
-
staticmethod find(name:
string
)WorldGenerator
¶ Searching for WorldGenerator in db
- Parameters:
name (
string
) – The name of the object
-
staticmethod get_class()
Class
¶ Return WorldGenerator class object
-
staticmethod cast(object:
Object
)WorldGenerator
¶ Trying to cast Object into WorldGenerator
- Parameters:
object (
Object
) – to cast
-
staticmethod new(name: