1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-11 16:36:43 +00:00

update types.lua

This commit is contained in:
mpeco 2022-08-26 19:04:58 -03:00
parent 90a73b39ce
commit af3af6e091
2 changed files with 76 additions and 6 deletions

View file

@ -28,8 +28,8 @@ namespace MWLua
{"Boots", ESM::Armor::Boots},
{"LGauntlet", ESM::Armor::LGauntlet},
{"RGauntlet", ESM::Armor::RGauntlet},
{"LBracer", ESM::Armor::LBracer},
{"Shield", ESM::Armor::Shield},
{"LBracer", ESM::Armor::LBracer},
{"RBracer", ESM::Armor::RBracer},
}));

View file

@ -522,6 +522,44 @@
-- @param openmw.core#GameObject object
-- @return #boolean
--- Armor.TYPE
-- @type ArmorTYPE
-- @field #number Helmet
-- @field #number Cuirass
-- @field #number LPauldron
-- @field #number RPauldron
-- @field #number Greaves
-- @field #number Boots
-- @field #number LGauntlet
-- @field #number RGauntlet
-- @field #number Shield
-- @field #number LBracer
-- @field #number RBracer
--- @{#ArmorTYPE}
-- @field [parent=#Armor] #ArmorTYPE TYPE
---
-- Returns the read-only @{#ArmorRecord} of an Armor
-- @function [parent=#Armor] record
-- @param #any objectOrRecordId
-- @return #ArmorRecord
---
-- @type ArmorRecord
-- @field #string id Record id
-- @field #string name Human-readable name
-- @field #string model VFS path to the model
-- @field #string mwscript MWScript on this armor (can be empty)
-- @field #string icon VFS path to the icon
-- @field #string enchant The enchantment ID of this armor (can be empty)
-- @field #number weight
-- @field #number value
-- @field #number type See @{#Armor.TYPE}
-- @field #number health
-- @field #number baseArmor
-- @field #number enchantCapacity
--- @{#Book} functions
@ -656,6 +694,27 @@
-- @param openmw.core#GameObject object
-- @return #boolean
---
-- Returns the read-only @{#LightRecord} of a Light
-- @function [parent=#Light] record
-- @param #any objectOrRecordId
-- @return #LightRecord
---
-- @type LightRecord
-- @field #string id Record id
-- @field #string name Human-readable name
-- @field #string model VFS path to the model
-- @field #string mwscript MWScript on this potion (can be empty)
-- @field #string icon VFS path to the icon
-- @field #string sound VFS path to the sound
-- @field #number weight
-- @field #number value
-- @field #number duration
-- @field #number radius
-- @field #number color
-- @field #boolean isCarriable
--- Functions for @{#Miscellaneous} objects
@ -1059,5 +1118,16 @@
-- @param openmw.core#GameObject object
-- @return #boolean
---
-- Returns the read-only @{#StaticRecord} of a Static
-- @function [parent=#Static] record
-- @param #any objectOrRecordId
-- @return #StaticRecord
---
-- @type StaticRecord
-- @field #string id Record id
-- @field #string model VFS path to the model
return nil