Пользовательские дополнения
На главную
Global( name, initialValue )
Объявляет глобальную переменную и присваивает ей указанное начальное значение. Все глобальные переменные (исключая функции) перед использованием должны быть явно объявлены.
-- библиотека:
нет (глобальная функция)
-- объявление:
function Global( name, initialValue )
-- параметры:
name: string - имя регистрируемой глобальной переменной
initialValue: any type - начальное значение глобальной переменной, может быть использовано любое значение любого типа
-- возвращаемые значения:
нет
-- примеры:
Global( "someVar", nil )
Global( "someVar2", 1 )
Global( "someVar3", {} )
Search: "CategoryLuaApi" "CategoryCommon"
CategoryCommon
EventUserScreenshot
FunctionCommonAddonCreateChildForm
FunctionCommonConfirmAcceptEula
FunctionCommonCreateValuedText
FunctionCommonFormatFloat
FunctionCommonFormatInt
FunctionCommonGetAddonInfo
FunctionCommonGetAddonName
FunctionCommonGetBitAnd
FunctionCommonGetEmptyWstring
FunctionCommonGetGameBuildInfo
FunctionCommonGetGameVersion
FunctionCommonGetGlobalConfigSection
FunctionCommonGetInstanceIdByInteger
FunctionCommonGetIntFromWString
FunctionCommonGetRandFloat
FunctionCommonGetRandInt
FunctionCommonGetScriptCfgVar
FunctionCommonGetStateDebugName
FunctionCommonGetStateManagedAddons
FunctionCommonIsEmptyWstring
FunctionCommonIsEulaAccepted
FunctionCommonIsFinalRelease
FunctionCommonIsGfxApprovedDriver
FunctionCommonIsValuedObject
FunctionCommonIsValuedText
FunctionCommonIsWString
FunctionCommonLogError
FunctionCommonLogInfo
FunctionCommonLogWarning
FunctionCommonMakeUserAddonFullName
FunctionCommonMakeUserScreenshot
FunctionCommonOnEvent
FunctionCommonOnReaction
FunctionCommonOpenUrl
FunctionCommonQuitGame
FunctionCommonRegisterEventHandler
FunctionCommonRegisterReactionHandler
FunctionCommonRequestIntegerByInstanceId
FunctionCommonSendEvent
FunctionCommonSetCursor
FunctionCommonSetGlobalConfigSection
FunctionCommonStateLoadManagedAddon
FunctionCommonStateLoadManagedAddonGroup
FunctionCommonStateUnloadManagedAddon
FunctionCommonStateUnloadManagedAddonGroup
FunctionCommonUnRegisterEvent
FunctionCommonUnRegisterEventHandler
FunctionCompareWString
FunctionGlobal
CategoryLuaApi
CategoryFunction
CategoryCommon
На главную