Item.Settings: update annotations
This commit is contained in:
@@ -26,7 +26,7 @@ Settings.visual = ""
|
|||||||
---`key` = name, `value` = rating; `rating` = number.
|
---`key` = name, `value` = rating; `rating` = number.
|
||||||
---
|
---
|
||||||
---If rating not applicable, use 1.
|
---If rating not applicable, use 1.
|
||||||
---@type table?
|
---@type table<string,number>?
|
||||||
Settings.groups = nil
|
Settings.groups = nil
|
||||||
|
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ Settings.wield_image = nil
|
|||||||
Settings.wield_overlay = nil
|
Settings.wield_overlay = nil
|
||||||
|
|
||||||
---Scale for the item when held in hand.
|
---Scale for the item when held in hand.
|
||||||
---@type table?
|
---@type Position?
|
||||||
Settings.wield_scale = nil
|
Settings.wield_scale = nil
|
||||||
|
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ Settings.palette = nil
|
|||||||
|
|
||||||
---Color the item is colorized with. The palette overrides this.
|
---Color the item is colorized with. The palette overrides this.
|
||||||
---It is a colorspec.
|
---It is a colorspec.
|
||||||
---@type string?
|
---@type string|ColorSpec|nil
|
||||||
Settings.color = nil
|
Settings.color = nil
|
||||||
|
|
||||||
---Maximum amount of items that can be in a single stack.
|
---Maximum amount of items that can be in a single stack.
|
||||||
@@ -154,8 +154,7 @@ Settings.node_dig_prediction = nil
|
|||||||
---* * The behavior of "user" may change in the future.
|
---* * The behavior of "user" may change in the future.
|
||||||
---The default value is "user".
|
---The default value is "user".
|
||||||
---
|
---
|
||||||
---TODO: сделать или подтянуть из какого-нибудь helpers тип этой таблицы
|
---@type table<string,SimpleSoundSpec>?
|
||||||
---@type table?
|
|
||||||
Settings.touch_interaction = nil
|
Settings.touch_interaction = nil
|
||||||
|
|
||||||
|
|
||||||
@@ -163,8 +162,7 @@ Settings.touch_interaction = nil
|
|||||||
---Definition of item sounds to be played at various events.
|
---Definition of item sounds to be played at various events.
|
||||||
---All fields in this table are optional.
|
---All fields in this table are optional.
|
||||||
---
|
---
|
||||||
---TODO: сделать или подтянуть из какого-нибудь helpers тип этой таблицы
|
---@type table<string,SimpleSoundSpec>?
|
||||||
---@type table?
|
|
||||||
Settings.sound = nil
|
Settings.sound = nil
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user