Skip to content

Commit e0782ee

Browse files
committed
Add namespacing to type generator
1 parent 5b16863 commit e0782ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+14916
-14875
lines changed

dist/library/structures/df.advmode.lua

Lines changed: 384 additions & 384 deletions
Large diffs are not rendered by default.

dist/library/structures/df.announcements.lua

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
22
---@meta
33

4-
---@alias announcement_type
4+
---@alias df.announcement_type
55
---| -1 # NONE
66
---| 0 # REACHED_PEAK
77
---| 1 # ERA_CHANGE
@@ -358,7 +358,7 @@
358358
---| 352 # UNUSED_49
359359
---| 353 # UNUSED_50
360360

361-
---@class _announcement_type: DFEnumType
361+
---@class identity.announcement_type: DFEnumType
362362
---@field NONE -1
363363
---@field [-1] "NONE"
364364
---@field REACHED_PEAK 0
@@ -1437,7 +1437,7 @@ df.announcement_type._attr_entry_type._fields = {}
14371437
---@field UNUSED_50 { alert_type: "GENERAL" }
14381438
df.announcement_type.attrs = {}
14391439

1440-
---@alias announcement_alert_type
1440+
---@alias df.announcement_alert_type
14411441
---| -1 # NONE
14421442
---| 0 # GENERAL
14431443
---| 1 # ERA_CHANGE
@@ -1477,7 +1477,7 @@ df.announcement_type.attrs = {}
14771477
---| 35 # SPARRING
14781478
---| 36 # HUNTING
14791479

1480-
---@class _announcement_alert_type: DFEnumType
1480+
---@class identity.announcement_alert_type: DFEnumType
14811481
---@field NONE -1
14821482
---@field [-1] "NONE"
14831483
---@field GENERAL 0
@@ -1556,8 +1556,8 @@ df.announcement_type.attrs = {}
15561556
---@field [36] "HUNTING"
15571557
df.announcement_alert_type = {}
15581558

1559-
---@class announcement_flags: DFBitfield
1560-
---@field _enum _announcement_flags
1559+
---@class df.announcement_flags: DFBitfield
1560+
---@field _enum identity.announcement_flags
15611561
---@field DO_MEGA boolean BOX
15621562
---@field [0] boolean BOX
15631563
---@field PAUSE boolean P
@@ -1575,7 +1575,7 @@ df.announcement_alert_type = {}
15751575
---@field ALERT boolean ALERT
15761576
---@field [7] boolean ALERT
15771577

1578-
---@class _announcement_flags: DFBitfieldType
1578+
---@class identity.announcement_flags: DFBitfieldType
15791579
---@field DO_MEGA 0 BOX
15801580
---@field [0] "DO_MEGA" BOX
15811581
---@field PAUSE 1 P
@@ -1594,63 +1594,63 @@ df.announcement_alert_type = {}
15941594
---@field [7] "ALERT" ALERT
15951595
df.announcement_flags = {}
15961596

1597-
---@class (exact) announcements: DFStruct
1598-
---@field _type _announcements
1599-
---@field flags DFEnumVector<announcement_type, announcement_flags>
1597+
---@class (exact) df.announcements: DFStruct
1598+
---@field _type identity.announcements
1599+
---@field flags DFEnumVector<df.announcement_type, df.announcement_flags>
16001600

1601-
---@class _announcements: DFCompoundType
1601+
---@class identity.announcements: DFCompoundType
16021602
---@field _kind 'struct-type'
16031603
df.announcements = {}
16041604

1605-
---@return announcements
1605+
---@return df.announcements
16061606
function df.announcements:new() end
16071607

1608-
---@class (exact) report: DFStruct
1609-
---@field _type _report
1610-
---@field type announcement_type valid only if coordinates are
1608+
---@class (exact) df.report: DFStruct
1609+
---@field _type identity.report
1610+
---@field type df.announcement_type valid only if coordinates are
16111611
---@field text string
16121612
---@field color number
16131613
---@field bright boolean
16141614
---@field duration number remaining graphical frames to display this report in announcement bar
1615-
---@field flags report.T_flags
1615+
---@field flags df.report.T_flags
16161616
---@field repeat_count number 100 => displays: x101
1617-
---@field zoom_type report_zoom_type
1618-
---@field pos coord
1619-
---@field zoom_type2 report_zoom_type
1620-
---@field pos2 coord
1617+
---@field zoom_type df.report_zoom_type
1618+
---@field pos df.coord
1619+
---@field zoom_type2 df.report_zoom_type
1620+
---@field pos2 df.coord
16211621
---@field id number
16221622
---@field year number
16231623
---@field time number
16241624
---@field activity_id number
16251625
---@field activity_event_id number
16261626
---@field speaker_id number unit speaking the conversation References: `unit`
16271627

1628-
---@class _report: DFCompoundType
1628+
---@class identity.report: DFCompoundType
16291629
---@field _kind 'struct-type'
16301630
df.report = {}
16311631

1632-
---@return report
1632+
---@return df.report
16331633
function df.report:new() end
16341634

16351635
---@param key number
1636-
---@return report|nil
1636+
---@return df.report|nil
16371637
function df.report.find(key) end
16381638

1639-
---@class report_vector: DFVector, { [integer]: report }
1639+
---@class report_vector: DFVector, { [integer]: df.report }
16401640

16411641
---@return report_vector # df.global.world.status.reports
16421642
function df.report.get_vector() end
16431643

1644-
---@class report.T_flags: DFBitfield
1645-
---@field _enum _report.T_flags
1644+
---@class df.report.T_flags: DFBitfield
1645+
---@field _enum identity.report.flags
16461646
---@field continuation boolean When split into multiple lines, set on all but the first
16471647
---@field [0] boolean When split into multiple lines, set on all but the first
16481648
---@field unconscious boolean units.active[0]
16491649
---@field [1] boolean units.active[0]
16501650
---@field announcement boolean
16511651
---@field [2] boolean
16521652

1653-
---@class _report.T_flags: DFBitfieldType
1653+
---@class identity.report.flags: DFBitfieldType
16541654
---@field continuation 0 When split into multiple lines, set on all but the first
16551655
---@field [0] "continuation" When split into multiple lines, set on all but the first
16561656
---@field unconscious 1 units.active[0]
@@ -1659,12 +1659,12 @@ function df.report.get_vector() end
16591659
---@field [2] "announcement"
16601660
df.report.T_flags = {}
16611661

1662-
---@alias report_zoom_type
1662+
---@alias df.report_zoom_type
16631663
---| 0 # Generic
16641664
---| 1 # Item
16651665
---| 2 # Unit
16661666

1667-
---@class _report_zoom_type: DFEnumType
1667+
---@class identity.report_zoom_type: DFEnumType
16681668
---@field Generic 0
16691669
---@field [0] "Generic"
16701670
---@field Item 1
@@ -1673,80 +1673,80 @@ df.report.T_flags = {}
16731673
---@field [2] "Unit"
16741674
df.report_zoom_type = {}
16751675

1676-
---@class (exact) popup_message: DFStruct
1677-
---@field _type _popup_message
1676+
---@class (exact) df.popup_message: DFStruct
1677+
---@field _type identity.popup_message
16781678
---@field text string
16791679
---@field color number
16801680
---@field bright boolean
16811681

1682-
---@class _popup_message: DFCompoundType
1682+
---@class identity.popup_message: DFCompoundType
16831683
---@field _kind 'struct-type'
16841684
df.popup_message = {}
16851685

1686-
---@return popup_message
1686+
---@return df.popup_message
16871687
function df.popup_message:new() end
16881688

1689-
---@class (exact) announcement_alertst: DFStruct
1690-
---@field _type _announcement_alertst
1691-
---@field type announcement_alert_type
1689+
---@class (exact) df.announcement_alertst: DFStruct
1690+
---@field _type identity.announcement_alertst
1691+
---@field type df.announcement_alert_type
16921692
---@field announcement_id DFNumberVector
16931693
---@field report_unid DFNumberVector unit id
16941694
---@field report_unit_announcement_category _announcement_alertst_report_unit_announcement_category vector must be same length as report_unid
16951695

1696-
---@class _announcement_alertst: DFCompoundType
1696+
---@class identity.announcement_alertst: DFCompoundType
16971697
---@field _kind 'struct-type'
16981698
df.announcement_alertst = {}
16991699

1700-
---@return announcement_alertst
1700+
---@return df.announcement_alertst
17011701
function df.announcement_alertst:new() end
17021702

17031703
---@class _announcement_alertst_report_unit_announcement_category: DFContainer
1704-
---@field [integer] unit_report_type
1704+
---@field [integer] df.unit_report_type
17051705
local _announcement_alertst_report_unit_announcement_category
17061706

17071707
---@nodiscard
17081708
---@param index integer
1709-
---@return DFPointer<unit_report_type>
1709+
---@return DFPointer<df.unit_report_type>
17101710
function _announcement_alertst_report_unit_announcement_category:_field(index) end
17111711

17121712
---@param index '#'|integer
1713-
---@param item unit_report_type
1713+
---@param item df.unit_report_type
17141714
function _announcement_alertst_report_unit_announcement_category:insert(index, item) end
17151715

17161716
---@param index integer
17171717
function _announcement_alertst_report_unit_announcement_category:erase(index) end
17181718

17191719
-- allocated on the stack, included in df-structures to assist with disassembly
1720-
---@class (exact) announcement_infost: DFStruct
1721-
---@field _type _announcement_infost
1722-
---@field type announcement_type
1720+
---@class (exact) df.announcement_infost: DFStruct
1721+
---@field _type identity.announcement_infost
1722+
---@field type df.announcement_type
17231723
---@field color number
17241724
---@field bright boolean
1725-
---@field pos coord
1726-
---@field zoom_type report_zoom_type
1727-
---@field pos2 coord
1728-
---@field zoom_type2 report_zoom_type
1725+
---@field pos df.coord
1726+
---@field zoom_type df.report_zoom_type
1727+
---@field pos2 df.coord
1728+
---@field zoom_type2 df.report_zoom_type
17291729
---@field display_timer number graphical frames for announcement bar to linger on last line with no new announcement
1730-
---@field unit_a unit
1731-
---@field unit_d unit
1730+
---@field unit_a df.unit
1731+
---@field unit_d df.unit
17321732
---@field activity_id number same as field in report
17331733
---@field activity_event_id number same as field in report
17341734
---@field speaker_id number References: `unit`
1735-
---@field flags announcement_infost.T_flags
1735+
---@field flags df.announcement_infost.T_flags
17361736

1737-
---@class _announcement_infost: DFCompoundType
1737+
---@class identity.announcement_infost: DFCompoundType
17381738
---@field _kind 'struct-type'
17391739
df.announcement_infost = {}
17401740

1741-
---@return announcement_infost
1741+
---@return df.announcement_infost
17421742
function df.announcement_infost:new() end
17431743

1744-
---@class announcement_infost.T_flags: DFBitfield
1745-
---@field _enum _announcement_infost.T_flags
1744+
---@class df.announcement_infost.T_flags: DFBitfield
1745+
---@field _enum identity.announcement_infost.flags
17461746
---@field SPARRING_EVENT boolean determined by unit_action_data_attack.flags.sparring_hit
17471747
---@field [0] boolean determined by unit_action_data_attack.flags.sparring_hit
17481748

1749-
---@class _announcement_infost.T_flags: DFBitfieldType
1749+
---@class identity.announcement_infost.flags: DFBitfieldType
17501750
---@field SPARRING_EVENT 0 determined by unit_action_data_attack.flags.sparring_hit
17511751
---@field [0] "SPARRING_EVENT" determined by unit_action_data_attack.flags.sparring_hit
17521752
df.announcement_infost.T_flags = {}

0 commit comments

Comments
 (0)