TextManager()
TextManager - 文本管理器
操作用语和信息的静态类。
负责从数据库中获取各种文本,包括基本术语、指令、消息等,
并提供统一的访问接口。
The static class that handles terms and messages.
Responsible for retrieving various texts from the database, including basic terms,
commands, messages, etc., and providing a unified access interface.
Kind: global function
- TextManager()
- .basic(basicId) ⇒
string
- .param(paramId) ⇒
string
- .command(commandId) ⇒
string
- .message(messageId) ⇒
string
- .getter(method, param) ⇒
Object
- .basic(basicId) ⇒
TextManager.basic(basicId) ⇒ string
基本状态文本
Get basic status text
Kind: static method of TextManager
Returns: string
- 基本状态文本 / Basic status text
Param | Type | Description |
---|---|---|
basicId | number | 基本状态 ID / Basic status ID |
TextManager.param(paramId) ⇒ string
能力值文本
Get parameter text
Kind: static method of TextManager
Returns: string
- 能力值文本 / Parameter text
Param | Type | Description |
---|---|---|
paramId | number | 能力值 ID / Parameter ID |
TextManager.command(commandId) ⇒ string
指令文本
Get command text
Kind: static method of TextManager
Returns: string
- 指令文本 / Command text
Param | Type | Description |
---|---|---|
commandId | number | 指令 ID / Command ID |
TextManager.message(messageId) ⇒ string
信息文本
Get message text
Kind: static method of TextManager
Returns: string
- 信息文本 / Message text
Param | Type | Description |
---|---|---|
messageId | string | 信息 ID / Message ID |
TextManager.getter(method, param) ⇒ Object
获取器函数
用于创建属性的 getter 方法
Getter function
Used to create getter methods for properties
Kind: static method of TextManager
Returns: Object
- 属性描述符 / Property descriptor
Param | Type | Description |
---|---|---|
method | string | 方法名 / Method name |
param | * | 参数 / Parameter |