Fix typos in Lua documentation

revert-6246b479
uramer 1 year ago
parent fbe6a398f8
commit bf7b39f214

@ -71,7 +71,7 @@ return {
-- If `handler(object, actor)` returns false, other handlers for
-- the same object (including type handlers) will be skipped.
-- @function [parent=#Activation] addHandlerForType
-- @param #userdata type A type from the `openmw.types` package.
-- @param #any type A type from the `openmw.types` package.
-- @param #function handler The handler.
addHandlerForType = function(type, handler)
local handlers = handlersPerType[type]

@ -3,7 +3,7 @@
-- @usage local I = require('openmw.interfaces')
---
-- @field [parent=#interfaces] scripts.omw.ai#scripts.omw.activationhandlers Activation
-- @field [parent=#interfaces] scripts.omw.activationhandlers#scripts.omw.activationhandlers Activation
---
-- @field [parent=#interfaces] scripts.omw.ai#scripts.omw.ai AI

@ -944,7 +944,7 @@
-- @field #string icon VFS path to the icon
-- @field #number weight
-- @field #number value
-- @field #list<openmw.core#MagicEffectWithParam> effects The effects (@{#list<openmw.core#MagicEffectWithParam>}) of the ingredient
-- @field #list<openmw.core#MagicEffectWithParams> effects The effects (@{#list<openmw.core#MagicEffectWithParams>}) of the ingredient
--- @{#Lockable} functions
@ -1127,7 +1127,7 @@
-- @field #string icon VFS path to the icon
-- @field #number weight
-- @field #number value
-- @field #list<openmw.core#MagicEffectWithParam> effects The effects (@{#list<openmw.core#MagicEffectWithParam>}) of the potion
-- @field #list<openmw.core#MagicEffectWithParams> effects The effects (@{#list<openmw.core#MagicEffectWithParams>}) of the potion

@ -407,14 +407,14 @@
---
-- Creates a new Box with a given center and half sizes. Boxes are immutable and can not be changed after creation.
-- @function [parent=#util] Box
-- @function [parent=#util] box
-- @param #Vector3 center
-- @param #Vector3 halfSize in each dimension (x, y, z)
-- @return #Box
---
-- Creates a new Box from a given transformation. Boxes are immutable and can not be changed after creation.
-- @function [parent=#util] Box
-- @function [parent=#util] box
-- @param #Transform transform A transformation which encapsulates the boxes center pointer (translation), half sizes (scale), and rotation.
-- @return #Box
-- @usage

Loading…
Cancel
Save