Appearance
消息模块管理接口 Chat
具体函数名及描述如下:
序号 | 函数名 | 函数描述 |
---|---|---|
1 | SendChat(...) | 发送聊天消息 |
2 | SendSystemMsg(...) | 发送系统消息 |
SendChat
- 参数及类型:
- 返回值及类型:
- ret:
bool
成功(true)
- ret:
- 该方法的主要作用: 发送聊天消息
- 具体使用案例如下:
lua
Chat:SendChat("聊天信息")
SendSystemMsg
- 参数及类型:
- 返回值及类型:
- ret:
bool
成功(true)
- ret:
- 该方法的主要作用: 发送系统消息
- 具体使用案例如下:
lua
Chat:SendSystemMsg("系统消息")