Skip to content

Commit 5b00037

Browse files
Auto-update definitions
1 parent 8194551 commit 5b00037

29 files changed

+1300
-405
lines changed

dist/library/structures/df.building.lua

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3193,12 +3193,61 @@ function df.building_cagest:new() end
31933193
---@field [2] "BoltThrower"
31943194
df.siegeengine_type = {}
31953195

3196+
---@alias df.siegeengine_orientation
3197+
---| 0 # North
3198+
---| 1 # Northeast
3199+
---| 2 # East
3200+
---| 3 # Southeast
3201+
---| 4 # South
3202+
---| 5 # Southwest
3203+
---| 6 # West
3204+
---| 7 # Northwest
3205+
3206+
---@class identity.siegeengine_orientation: DFEnumType
3207+
---@field North 0 no bay12 enum
3208+
---@field [0] "North" no bay12 enum
3209+
---@field Northeast 1
3210+
---@field [1] "Northeast"
3211+
---@field East 2
3212+
---@field [2] "East"
3213+
---@field Southeast 3
3214+
---@field [3] "Southeast"
3215+
---@field South 4
3216+
---@field [4] "South"
3217+
---@field Southwest 5
3218+
---@field [5] "Southwest"
3219+
---@field West 6
3220+
---@field [6] "West"
3221+
---@field Northwest 7
3222+
---@field [7] "Northwest"
3223+
df.siegeengine_orientation = {}
3224+
3225+
---@alias df.siegeengine_action
3226+
---| 0 # NotInUse
3227+
---| 1 # KeepLoaded
3228+
---| 2 # PrepareToFire
3229+
---| 3 # FireAtWill
3230+
---| 4 # PracticeFire
3231+
3232+
---@class identity.siegeengine_action: DFEnumType
3233+
---@field NotInUse 0 no bay12 enum
3234+
---@field [0] "NotInUse" no bay12 enum
3235+
---@field KeepLoaded 1
3236+
---@field [1] "KeepLoaded"
3237+
---@field PrepareToFire 2
3238+
---@field [2] "PrepareToFire"
3239+
---@field FireAtWill 3
3240+
---@field [3] "FireAtWill"
3241+
---@field PracticeFire 4
3242+
---@field [4] "PracticeFire"
3243+
df.siegeengine_action = {}
3244+
31963245
---@class (exact) df.building_siegeenginest: DFStruct, df.building_actual
31973246
---@field _type identity.building_siegeenginest
31983247
---@field type df.siegeengine_type
3199-
---@field facing df.building_siegeenginest.T_facing
3200-
---@field resting_orientation df.building_siegeenginest.T_resting_orientation
3201-
---@field action df.building_siegeenginest.T_action
3248+
---@field facing df.siegeengine_orientation
3249+
---@field resting_orientation df.siegeengine_orientation
3250+
---@field action df.siegeengine_action
32023251
---@field fire_timer number
32033252
---@field fill_timer number
32043253
---@field rotate_delay number
@@ -3210,54 +3259,6 @@ df.building_siegeenginest = {}
32103259
---@return df.building_siegeenginest
32113260
function df.building_siegeenginest:new() end
32123261

3213-
---@alias df.building_siegeenginest.T_facing
3214-
---| 0 # Left
3215-
---| 1 # Up
3216-
---| 2 # Right
3217-
---| 3 # Down
3218-
3219-
---@class identity.building_siegeenginest.facing: DFEnumType
3220-
---@field Left 0
3221-
---@field [0] "Left"
3222-
---@field Up 1
3223-
---@field [1] "Up"
3224-
---@field Right 2
3225-
---@field [2] "Right"
3226-
---@field Down 3
3227-
---@field [3] "Down"
3228-
df.building_siegeenginest.T_facing = {}
3229-
3230-
---@alias df.building_siegeenginest.T_resting_orientation
3231-
---| 0 # Orientation_Left
3232-
---| 1 # Orientation_Up
3233-
---| 2 # Orientation_Right
3234-
---| 3 # Orientation_Down
3235-
3236-
---@class identity.building_siegeenginest.resting_orientation: DFEnumType
3237-
---@field Orientation_Left 0
3238-
---@field [0] "Orientation_Left"
3239-
---@field Orientation_Up 1
3240-
---@field [1] "Orientation_Up"
3241-
---@field Orientation_Right 2
3242-
---@field [2] "Orientation_Right"
3243-
---@field Orientation_Down 3
3244-
---@field [3] "Orientation_Down"
3245-
df.building_siegeenginest.T_resting_orientation = {}
3246-
3247-
---@alias df.building_siegeenginest.T_action
3248-
---| 0 # NotInUse
3249-
---| 1 # PrepareToFire
3250-
---| 2 # FireAtWill
3251-
3252-
---@class identity.building_siegeenginest.action: DFEnumType
3253-
---@field NotInUse 0
3254-
---@field [0] "NotInUse"
3255-
---@field PrepareToFire 1
3256-
---@field [1] "PrepareToFire"
3257-
---@field FireAtWill 2
3258-
---@field [2] "FireAtWill"
3259-
df.building_siegeenginest.T_action = {}
3260-
32613262
---@class (exact) df.building_traction_benchst: DFStruct, df.building_actual
32623263
---@field _type identity.building_traction_benchst
32633264
---@field traction_flag integer unused
@@ -3500,7 +3501,7 @@ df.building_farmplot_flag = {}
35003501

35013502
---@class (exact) df.building_farmplotst: DFStruct, df.building_actual
35023503
---@field _type identity.building_farmplotst
3503-
---@field plant_id number[]
3504+
---@field plant_id DFEnumVector<df.season, number>
35043505
---@field material_amount number
35053506
---@field farm_flags df.building_farmplot_flag
35063507
---@field last_season df.season
@@ -4224,8 +4225,8 @@ function df.building_constructionst:new() end
42244225
---@field [2] "ANY_ZONE"
42254226
---@field ACTIVITY_ZONE 3
42264227
---@field [3] "ACTIVITY_ZONE"
4227-
---@field ZONE_HOME 4 98 different civzone subtypes
4228-
---@field [4] "ZONE_HOME" 98 different civzone subtypes
4228+
---@field ZONE_HOME 4 98 different civzone subtypes: array of length BUILDING_CIVZONENUM
4229+
---@field [4] "ZONE_HOME" 98 different civzone subtypes: array of length BUILDING_CIVZONENUM
42294230
---@field ZONE_DEPOT 5
42304231
---@field [5] "ZONE_DEPOT"
42314232
---@field ZONE_STOCKPILE 6

dist/library/structures/df.creature.lua

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -938,15 +938,18 @@ df.body_actionst = {}
938938
function df.body_actionst:new() end
939939

940940
---@alias df.gait_type
941+
---| -1 # NONE
941942
---| 0 # WALK
942943
---| 1 # FLY
943944
---| 2 # SWIM
944945
---| 3 # CRAWL
945946
---| 4 # CLIMB
946947

947948
---@class identity.gait_type: DFEnumType
948-
---@field WALK 0 bay12: GaitType
949-
---@field [0] "WALK" bay12: GaitType
949+
---@field NONE -1 bay12: GaitType
950+
---@field [-1] "NONE" bay12: GaitType
951+
---@field WALK 0
952+
---@field [0] "WALK"
950953
---@field FLY 1
951954
---@field [1] "FLY"
952955
---@field SWIM 2
@@ -1411,6 +1414,7 @@ df.creature_graphics_layer_flag = {}
14111414
---@field required_profession DFNumberVector
14121415
---@field haul_min_count number
14131416
---@field haul_max_count number
1417+
---@field body_size_min number
14141418
---@field required_item _creature_graphics_layerst_required_item
14151419
---@field forbidden_item _creature_graphics_layerst_forbidden_item
14161420
---@field dye_color_index DFNumberVector
@@ -1620,15 +1624,15 @@ df.creature_small_texture_type = {}
16201624
---@field creature_texture_texpos DFEnumVector<df.creature_graphics_role, number[][]>[]
16211625
---@field creature_texture_add_color DFEnumVector<df.creature_graphics_role, boolean>
16221626
---@field creature_texture_sheet_icon_texpos DFEnumVector<df.creature_graphics_role, number>[]
1623-
---@field entity_link_texpos DFEnumVector<df.histfig_entity_link_type, DFEnumVector<df.creature_graphics_role, number[][]>>[]
1624-
---@field entity_link_add_color DFEnumVector<df.histfig_entity_link_type, DFEnumVector<df.creature_graphics_role, boolean>>
1625-
---@field entity_link_sheet_icon_texpos DFEnumVector<df.histfig_entity_link_type, DFEnumVector<df.creature_graphics_role, number>>[]
1626-
---@field site_link_texpos DFEnumVector<df.histfig_site_link_type, DFEnumVector<df.creature_graphics_role, number[][]>>[]
1627-
---@field site_link_add_color DFEnumVector<df.histfig_site_link_type, DFEnumVector<df.creature_graphics_role, boolean>>
1628-
---@field site_link_sheet_icon_texpos DFEnumVector<df.histfig_site_link_type, DFEnumVector<df.creature_graphics_role, number>>[]
1629-
---@field profession_texpos DFEnumVector<df.profession, DFEnumVector<df.creature_graphics_role, number[][]>>[]
1630-
---@field profession_add_color DFEnumVector<df.profession, DFEnumVector<df.creature_graphics_role, boolean>>
1631-
---@field profession_sheet_icon_texpos DFEnumVector<df.profession, DFEnumVector<df.creature_graphics_role, number>>[]
1627+
---@field entity_link_texpos DFEnumVector<df.creature_graphics_role, DFEnumVector<df.histfig_entity_link_type, number[][]>>[]
1628+
---@field entity_link_add_color DFEnumVector<df.creature_graphics_role, DFEnumVector<df.histfig_entity_link_type, boolean>>
1629+
---@field entity_link_sheet_icon_texpos DFEnumVector<df.creature_graphics_role, DFEnumVector<df.histfig_entity_link_type, number>>[]
1630+
---@field site_link_texpos DFEnumVector<df.creature_graphics_role, DFEnumVector<df.histfig_site_link_type, number[][]>>[]
1631+
---@field site_link_add_color DFEnumVector<df.creature_graphics_role, DFEnumVector<df.histfig_site_link_type, boolean>>
1632+
---@field site_link_sheet_icon_texpos DFEnumVector<df.creature_graphics_role, DFEnumVector<df.histfig_site_link_type, number>>[]
1633+
---@field profession_texpos DFEnumVector<df.creature_graphics_role, DFEnumVector<df.profession, number[][]>>[]
1634+
---@field profession_add_color DFEnumVector<df.creature_graphics_role, DFEnumVector<df.profession, boolean>>
1635+
---@field profession_sheet_icon_texpos DFEnumVector<df.creature_graphics_role, DFEnumVector<df.profession, number>>[]
16321636
---@field position_graphics _creature_raw_graphics_position_graphics
16331637
---@field graphics_layer_set _creature_raw_graphics_graphics_layer_set
16341638
---@field creature_small_texpos DFEnumVector<df.creature_small_texture_type, number>
@@ -2270,8 +2274,8 @@ df.caste_raw_flags = {}
22702274
---@field color_modifiers _caste_raw_color_modifiers
22712275
---@field tissue_styles _caste_raw_tissue_styles
22722276
---@field shearable_tissue_layer _caste_raw_shearable_tissue_layer
2273-
---@field body_app_mode_rate_index any[][]
2274-
---@field bp_app_mode_rate_index number[]
2277+
---@field body_app_mode_rate_index DFEnumVector<df.appearance_modifier_growth_interval, number>
2278+
---@field bp_app_mode_rate_index DFEnumVector<df.appearance_modifier_growth_interval, number>
22752279
---@field appearance_gene_count number
22762280
---@field color_gene_count number
22772281
---@field natural_skill_id _caste_raw_natural_skill_id
@@ -2315,8 +2319,7 @@ df.caste_raw_flags = {}
23152319
---@field lair_hunter_speech df.caste_raw.T_lair_hunter_speech
23162320
---@field specific_food df.caste_raw.T_specific_food
23172321
---@field sound _caste_raw_sound
2318-
---@field sound_alert DFNumberVector
2319-
---@field sound_peaceful_intermittent DFNumberVector bay12: vector[CreatureSoundType]
2322+
---@field sound_index DFEnumVector<df.creature_sound_type, number>
23202323
---@field material_force_adjust _caste_raw_material_force_adjust
23212324
---@field smell_trigger number v0.40.01
23222325
---@field odor_level number
@@ -3406,7 +3409,7 @@ function _creature_raw_hive_product_item_type:erase(index) end
34063409
---@field list_creature DFNumberVector Together with list_caste, a list of all caste indexes in order.
34073410
---@field list_caste DFNumberVector
34083411
---@field action_strings DFStringVector
3409-
---@field hist_fig_to_creature_map DFNumberVector unordered_map<int32_t,int32_t>
3412+
---@field hist_fig_to_creature_map DFNumberVector
34103413
local creature_handler
34113414

34123415
---@param creature_index number References: `df.creature_raw`

dist/library/structures/df.cultural_identity.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function df.cultural_identity_interactionst:new() end
8989
---@field group_log _cultural_identity_group_log the circumstances of groups joining or leaving this culture
9090
---@field ethic DFEnumVector<df.ethic_type, df.ethic_response>
9191
---@field values DFEnumVector<df.value_type, number>
92-
---@field events _cultural_identity_events
92+
---@field events _cultural_identity_events SAVE_VALUENUM
9393
---@field world_general_knowledge_year number
9494
---@field known_heid DFNumberVector
9595
---@field origin_ci_id number References: `df.cultural_identity`

0 commit comments

Comments
 (0)