Skip to content

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

TextManager.basic(basicId) ⇒ string

基本状态文本
Get basic status text

Kind: static method of TextManager
Returns: string - 基本状态文本 / Basic status text

ParamTypeDescription
basicIdnumber基本状态 ID / Basic status ID

TextManager.param(paramId) ⇒ string

能力值文本
Get parameter text

Kind: static method of TextManager
Returns: string - 能力值文本 / Parameter text

ParamTypeDescription
paramIdnumber能力值 ID / Parameter ID

TextManager.command(commandId) ⇒ string

指令文本
Get command text

Kind: static method of TextManager
Returns: string - 指令文本 / Command text

ParamTypeDescription
commandIdnumber指令 ID / Command ID

TextManager.message(messageId) ⇒ string

信息文本
Get message text

Kind: static method of TextManager
Returns: string - 信息文本 / Message text

ParamTypeDescription
messageIdstring信息 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

ParamTypeDescription
methodstring方法名 / Method name
param*参数 / Parameter

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新