X2BattleField
Globals
NIBC_BUFF_LEFT_TIME
integer
NIBC_BUFF_STACK
integer
VS_DRAW
integer
VS_LOSE
integer
VS_WIN
integer
X2BattleField
X2BattleField
Aliases
NPC_INFORMATION_BROAD_CAST
NIBC_BUFF_LEFT_TIME|NIBC_BUFF_STACK
-- api/X2BattleField
NPC_INFORMATION_BROAD_CAST:
| `NIBC_BUFF_LEFT_TIME`
| `NIBC_BUFF_STACK`
VS
VS_DRAW|VS_LOSE|VS_WIN
-- api/X2BattleField
VS:
| `VS_DRAW`
| `VS_LOSE`
| `VS_WIN`
Classes
Class: X2BattleField
Method: GetDetailInstanceInfo
(method) X2BattleField:GetDetailInstanceInfo(instanceType: number)
-> detailInfo: DetailInstanceInfo|nil
Returns detailed information about a specific instance. Returns
nilif the player does not meet the level requirements.@param
instanceType— The instance type to query.@return
detailInfo— The instance details, ornilif requirements not met.See: DetailInstanceInfo
Method: GetInstanceName
(method) X2BattleField:GetInstanceName(instanceType: number)
-> instanceName: string|nil
Returns the name of the specified instance.
@param
instanceType— The instance type to query.@return
instanceName— The instance name, ornilif not found.
Method: GetInstanceListByKind
(method) X2BattleField:GetInstanceListByKind(kind: number)
-> instanceList: InstanceByKind[]|nil
Returns a list of instances for the specified kind. Returns
nilif the player does not meet the level requirements.@param
kind— The instance kind to query.@return
instanceList— The list of instances, ornilif requirements not met.
Method: GetInstanceUiKindList
(method) X2BattleField:GetInstanceUiKindList()
-> instanceUiKindList: InstanceUiKind[]
Returns a list of available instance kinds for the UI.
@return
instanceUiKindList— The list of instance UI kinds.See: InstanceUiKind