Lua接口/客户端/GetGlobalInteger
来自天龙知识库
跳到导航跳到搜索
GetGlobalInteger
获得一个全局变量 · 实现于 Game/Interface/GMGameInterface_Script.cpp
调用方式
GetGlobalInteger(string)
作为全局函数直接按名称调用。
界面脚本中共 4 处调用,实参个数出现过:1 个(4 处)。
参数
| 序号 | 类型 | 说明 |
|---|---|---|
| 1 | string
|
调用点实参:"StallSale_Item"(2 处)、"StallSale_ItemID"(2 处)
|
返回值
返回 1 个值。
脚本中的调用
以下是界面脚本里的真实调用点(同一形态只列一次):
-- InputMoney/InputMoney.lua
GetGlobalInteger("StallSale_ItemID")
-- InputMoney/InputMoney.lua
GetGlobalInteger("StallSale_Item")