Difference between revisions of "HPL3/SOMA/Scripting/Scripting Api/cLux"

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting‎ | Scripting Api
Jump to navigation Jump to search
(Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Summary== {{CodeDocSummaryTop}} {{CodeDocSummaryIte...")
 
(No difference)

Latest revision as of 22:49, 24 August 2020

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Contents

Summary

Return Type Function and Description
void cLux_AddAreaType(const tString &in asName, const tString &in asScriptFile, const tString &in asScriptClass, bool abForceFullGameSave)
void cLux_AddCritterType(const tString &in asName, const tString &in asScriptFile, const tString &in asScriptClass, bool abForceFullGameSave)
void cLux_AddDebugMessage(const tString &in asText, bool abCheckForDuplicates)
void cLux_AddDebugMessage(const tString &in asText)
void cLux_AddEntityToInteractionWhiteList(iLuxEntity@ apEntity)
void cLux_AddLiquidAreaType(const tString &in asName, const tString &in asScriptFile, const tString &in asScriptClass, bool abForceFullGameSave)
void cLux_AddModule(const tString &in asName, const tString &in asScriptFile, const tString &in asScriptClass, int alId, bool abIsGlobal, const tString &in sContainer, bool abUseInputCallbacks)
void cLux_AddPropType(const tString &in asName, const tString &in asScriptFile, const tString &in asScriptClass, bool abForceFullGameSave)
void cLux_AddTodoMessage(const tString &in asText, bool abCheckForDuplicates)
void cLux_AddTodoMessage(const tString &in asText)
bool cLux_ApplyUserConfig()
bool cLux_CanContinue()
void cLux_ChangeMap(const tString &in asMapName, const tString &in asStartPos, const tString &in asTransferArea, const tString &in asStartSound, const tString &in asEndSound)
bool cLux_CheckLineOfSight(const cVector3f &in avStart, const cVector3f &in avEnd, bool abCheckOnlyShadowCasters, bool abCheckOnlyStatic, iLuxEntity@ apSkipEntity = null)
void cLux_CleanupData()
void cLux_Continue()
cLuxBackboneTail cLux_CreateEntityComponent_BackboneTail(iLuxEntity @apEntity)
cLuxBarkMachine cLux_CreateEntityComponent_BarkMachine(iLuxEntity @apEntity)
cLuxCharMover cLux_CreateEntityComponent_CharMover(iLuxEntity @apEntity, iCharacterBody @apCharBody)
cLuxEdgeGlow cLux_CreateEntityComponent_EdgeGlow(iLuxEntity @apEntity)
cLuxForceEmitter cLux_CreateEntityComponent_ForceEmitter(iLuxEntity @apEntity)
cLuxHeadTracker cLux_CreateEntityComponent_HeadTracker(iLuxEntity @apEntity)
cLuxLightSensor cLux_CreateEntityComponent_LightSensor(iLuxEntity @apEntity)
cLuxPathfinder cLux_CreateEntityComponent_Pathfinder(iLuxEntity @apEntity)
cLuxSoundListener cLux_CreateEntityComponent_SoundListener(iLuxEntity @apEntity)
cLuxStateMachine cLux_CreateEntityComponent_StateMachine(iLuxEntity @apEntity)
tString cLux_CreateHTMLImage(const tString &in asSrc, const tString &in asTitle = "", const cVector2l &in avSize = cVector2l_MinusOne)
tString cLux_CreateHTMLParagraph(const tString &in asContent)
tString cLux_CreateHTMLTag(const tString &in asTag, const tString &in asContent = "", const tString &in asParams = "")
cLuxScriptImGui cLux_CreateScriptImGui(const tString &in asName, bool abRegisterForDrawing, bool abSkipResetOnRegistration = true)
bool cLux_DebugModeOn()
void cLux_DecUnderwaterEffectUserCount()
void cLux_DeloadMap(const tString &in asTransferArea)
float cLux_DrawDebugText(const tString &in asText, float afY, float afSize = 14, cColor aColor = cColor, ../../ 1, ../../ 1, bool abAddNewLine = true)
void cLux_DrawHint(cImGui @apImGui, float afTimeStep, const cImGuiLabelData &in aLabel, const cVector3f &in avPosition, float afLineWidth, float afLineSpacing, const array<tWString> &in avTextLines, const array<cLuxScreenTextIcon@> &in avIcons, const array<array> &in avIconsPerLine)
void cLux_DrawScreenText(cImGui @apImGui, float afTimeStep, const cImGuiLabelData &in aLabel, const cVector3f &in avPosition, float afLineWidth, float afLineSpacing, const array<tWString> &in avTextLines, const array<cLuxScreenTextIcon@> &in avIcons, const array<array> &in avIconsPerLine)
void cLux_DrawSetToScreen(bool abClearScreen, const cColor &in aCol, cGuiSet@ apSet)
void cLux_DropPageFocus(const tString &in asX)
void cLux_Exit()
iLuxAchievementHandler cLux_GetAchievementHandler()
iLuxEntity cLux_GetBodyEntity(iPhysicsBody @apBody)
iPhysicsBody cLux_GetClosestBody(const cVector3f &in avStart, const cVector3f &in avDir, float afRayLength, float &out afDistance, cVector3f &out avSurfaceNormal)
bool cLux_GetClosestCharCollider(const cVector3f &in avStart, const cVector3f &in avDir, float afRayLength, bool abCheckDynamic, cLuxClosestCharCollider @apOutput)
bool cLux_GetClosestEntity(const cVector3f &in avStart, const cVector3f &in avDir, float afRayLength, int alIteractType, bool abCheckLineOfSight, cLuxClosestEntityData @apOutput)
cImGui cLux_GetCurrentImGui()
tString cLux_GetCurrentLanguage()
cLuxMap cLux_GetCurrentMap()
tWString cLux_GetCurrentUserProfilePath()
iFontData cLux_GetDefaultFont()
tString cLux_GetDefaultGameLanguage()
cLuxDialogHandler cLux_GetDialogHandler()
cLuxEffectHandler cLux_GetEffectHandler()
cLuxEventDatabaseHandler cLux_GetEventDatabaseHandler()
bool cLux_GetExplorationModeActive()
cConfigFile cLux_GetGameConfig()
cImGui cLux_GetGameHudImGui()
cGuiSet cLux_GetGameHudSet()
tString cLux_GetGameLanguageFolder()
bool cLux_GetGamePaused()
double cLux_GetGameTime()
bool cLux_GetGodModeActivated()
cLuxGuiHandler cLux_GetGuiHandler()
cGuiSet cLux_GetHelpGuiSet()
cVector2f cLux_GetHudVirtualCenterScreenSize()
cVector3f cLux_GetHudVirtualCenterScreenStartPos()
cVector2f cLux_GetHudVirtualCenterSize()
cVector2f cLux_GetHudVirtualOffset()
cVector2f cLux_GetHudVirtualSize()
cVector3f cLux_GetHudVirtualStartPos()
cImGui cLux_GetInputFocusImGui()
cLuxInputHandler cLux_GetInputHandler()
bool cLux_GetInteractionWhiteListActive()
cConfigFile cLux_GetKeyConfig()
float cLux_GetLightLevelAtPos(const cVector3f &in avPos, iLight @apSkipLight, float afRadiusAdd)
tString cLux_GetMainMenuFile()
cLuxMusicHandler cLux_GetMusicHandler()
cLuxPlayer cLux_GetPlayer()
cLuxMap cLux_GetPreloadMap()
cImGui cLux_GetPrevInputFocusImGui()
bool cLux_GetSaveConfigAtExit()
cLuxSaveHandler cLux_GetSaveHandler()
cLuxSoundscapeHandler cLux_GetSoundscapeHandler()
float cLux_GetStringDuration(const tWString &in asStr)
tWString cLux_GetStringWFromDate(const cDate &in aDate)
bool cLux_GetSupportExplorationMode()
void cLux_GetTextCatAndEntryFromString(const tString &in asData, tString &out asOutCat, tString &out asOutEntry)
bool cLux_GetUnderwaterEffectsActive()
cConfigFile cLux_GetUserConfig()
iScrUserModule_Interface cLux_GetUserModuleFromID(int alID)
iScrUserModule_Interface cLux_GetUserModuleFromName(const tString &in asName)
cViewport cLux_GetViewport()
cLuxVoiceHandler cLux_GetVoiceHandler()
bool cLux_HasConfigLoadError(tString &out asError)
bool cLux_HasTranslation(const tString &in asCat, const tString &in asEntry)
bool cLux_HasUnderwaterEffectUsers()
cLuxAgent cLux_ID_Agent(tID aID)
cLuxArea cLux_ID_Area(tID aID)
cBeam cLux_ID_Beam(tID aID)
cBillboard cLux_ID_Billboard(tID aID)
cBillboardGroup cLux_ID_BillboardGroup(tID aID)
iPhysicsBody cLux_ID_Body(tID aID)
iCharacterBody cLux_ID_CharacterBody(tID aID)
cClothEntity cLux_ID_ClothEntity(tID aID)
cLuxCritter cLux_ID_Critter(tID aID)
iLuxEntity cLux_ID_Entity(tID aID)
iEntity3D cLux_ID_Entity3D(tID aID)
cExposureArea cLux_ID_ExposureArea(tID aID)
cFogArea cLux_ID_FogArea(tID aID)
cForceField cLux_ID_ForceField(tID aID)
cGuiSetEntity cLux_ID_GuiSetEntity(tID aID)
iPhysicsJoint cLux_ID_Joint(tID aID)
cLensFlare cLux_ID_LensFlare(tID aID)
iLight cLux_ID_Light(tID aID)
cLightMaskBox cLux_ID_LightMaskBox(tID aID)
cLuxLiquidArea cLux_ID_LiquidArea(tID aID)
cMeshEntity cLux_ID_MeshEntity(tID aID)
cParticleSystem cLux_ID_ParticleSystem(tID aID)
cLuxProp cLux_ID_Prop(tID aID)
cLuxSoundscapeArea cLux_ID_ReverbArea(tID aID)
iRopeEntity cLux_ID_RopeEntity(tID aID)
cSoundEntity cLux_ID_SoundEntity(tID aID)
cSubMeshEntity cLux_ID_SubMeshEntity(tID aID)
void cLux_IncUnderwaterEffectUserCount()
bool cLux_IsChangingMap()
bool cLux_IsLoadingScreenVisible()
bool cLux_IsPlayGoReady(int &out alETA)
bool cLux_IsReadyToChangeMap()
bool cLux_IsStreamingMap()
void cLux_LoadScreenSetBarPosAndSize(const cVector2f &in avPos, const cVector2f &in avSize)
void cLux_LoadScreenSetForceBackground(bool abX)
void cLux_LoadScreenSetUseSmallIcon(bool abX)
void cLux_LoadScreenShowLoadingIcon(float afTime)
bool cLux_MapChangeIsTransfer()
bool cLux_MapIsLoaded()
void cLux_OutputTextToFile(const tWString &in asPath, const tString &in asText)
tWString cLux_ParseString(const tWString &in asInput)
void cLux_ParseStringIntoScreenText(const tWString &in asInput, cImGui @apImGui, const cLuxScreenTextFormatParameters & aFormatParams, array<tWString> &out aOutLines, array<cLuxScreenTextIcon@> &out aIconArray, array<array> &out aOutIconsPerLine, float &out afMaxLineHeight, float &out afDisplayTime, bool abTriggeredByGamepad)
bool cLux_PlayGuiSoundData(const tString &in asName, eSoundEntryType aDestType, float afVolMul, bool abSkipPreviousRandom)
bool cLux_PlayGuiSoundDataEx(const tString &in asName, eSoundEntryType aDestType, float afVolMul, bool abSkipPreviousRandom, cLuxSoundExtraData @apExtraData)
void cLux_PreloadEntity(const tString &in asFile)
void cLux_PreloadGuiGfx(const tString &in asFile, eImGuiGfx aType)
void cLux_PreloadMap(const tString &in asMapName, eWorldStreamPriority aPrio = eWorldStreamPriority_Normal)
void cLux_PreloadMaterial(const tString &in asFile)
void cLux_PreloadParticleSystem(const tString &in asFile)
void cLux_PreloadSound(const tString &in asFile)
void cLux_PreloadWebpage(const tString &in asX)
void cLux_RegisterCollisionRadius(int alX)
void cLux_RegisterEventListenerUserModule_AgentSetActive(const tString &in asModuleName)
void cLux_RenderBackgroundScreen(bool abDrawFullHUD)
void cLux_ResetShudderEffects(int alX)
void cLux_SaveScreenshotToFile(const tWString &in asPath, const cVector2l &in avSize = cVector2l_MinusOne, bool abKeepAspect = true, float afBrightness = 1.0f)
bool cLux_ScriptDebugOn()
void cLux_SendInputToGui(bool abX)
void cLux_SetAreaOffline(int alX)
void cLux_SetDebugInfoWindowText(const tString &in asText)
void cLux_SetExplorationModeActive(bool abX)
void cLux_SetGamePaused(bool abX)
void cLux_SetImGuiInputFocus(cImGui@ apImGui, bool abShowMouse)
void cLux_SetInteractionWhiteListActive(bool abX, bool abClearList)
void cLux_SetMapPreloadPriority(eWorldStreamPriority aPrio)
void cLux_SetUnderwaterEffectsActive(bool abX, bool abUseStartAndEndEffects)
void cLux_SetupDefaultGlobalReverb(eSoundReverbPreset aType, float afFadeTime)
void cLux_ShapeDamage(int aShape, const cMatrixf &in a_mtxTransform, const cVector3f &in avOrigin, float afMinDamage, float afMaxDamage, float afForce, float afMaxImpulse, int alStrength, float afHitSpeed, int aDamageType, bool abCheckEnemies, bool abCheckPlayer, bool abCheckProps, bool abLethalForPlayer, const tString &in asSource)
void cLux_ShapeDamage(iCollideShape@ aShape, const cMatrixf &in a_mtxTransform, const cVector3f &in avOrigin, float afMinDamage, float afMaxDamage, float afForce, float afMaxImpulse, int alStrength, float afHitSpeed, int aDamageType, bool abCheckEnemies, bool abCheckPlayer, bool abCheckProps, bool abLethalForPlayer, const tString &in asSource)
void cLux_StartMap(const tString &in asMapName)
void cLux_StartNewGame()
bool cLux_TestModeOn()
cLuxAgent cLux_ToAgent(iLuxEntity @apEntity)
cLuxArea cLux_ToArea(iLuxEntity @apEntity)
cLuxCritter cLux_ToCritter(iLuxEntity @apEntity)
cLuxLiquidArea cLux_ToLiquidArea(iLuxEntity @apEntity)
cLuxProp cLux_ToProp(iLuxEntity @apEntity)
tWString cLux_Translate(const tString &in asCat, const tString &in asEntry)
void cLux_TruncateTextFile(const tWString &in asPath, const tString &in asPattern, int alTimes)

Function Detail

cLux_AddAreaType

void cLux_AddAreaType(const tString &in asName,
                      const tString &in asScriptFile,
                      const tString &in asScriptClass,
                      bool abForceFullGameSave)


Parameters

  • asName (tString) —
  • asScriptFile (tString) —
  • asScriptClass (tString) —
  • abForceFullGameSave (bool) —

Returns:

  • void

cLux_AddCritterType

void cLux_AddCritterType(const tString &in asName,
                         const tString &in asScriptFile,
                         const tString &in asScriptClass,
                         bool abForceFullGameSave)


Parameters

  • asName (tString) —
  • asScriptFile (tString) —
  • asScriptClass (tString) —
  • abForceFullGameSave (bool) —

Returns:

  • void

cLux_AddDebugMessage

void cLux_AddDebugMessage(const tString &in asText,
                          bool abCheckForDuplicates)


Parameters

  • asText (tString) —
  • abCheckForDuplicates (bool) —

Returns:

  • void

cLux_AddDebugMessage

void cLux_AddDebugMessage(const tString &in asText)


Parameters

Returns:

  • void

cLux_AddEntityToInteractionWhiteList

void cLux_AddEntityToInteractionWhiteList(iLuxEntity@ apEntity)


Parameters

Returns:

  • void

cLux_AddLiquidAreaType

void cLux_AddLiquidAreaType(const tString &in asName,
                            const tString &in asScriptFile,
                            const tString &in asScriptClass,
                            bool abForceFullGameSave)


Parameters

  • asName (tString) —
  • asScriptFile (tString) —
  • asScriptClass (tString) —
  • abForceFullGameSave (bool) —

Returns:

  • void

cLux_AddModule

void cLux_AddModule(const tString &in asName,
                    const tString &in asScriptFile,
                    const tString &in asScriptClass,
                    int alId,
                    bool abIsGlobal,
                    const tString &in sContainer,
                    bool abUseInputCallbacks)


Parameters

  • asName (tString) —
  • asScriptFile (tString) —
  • asScriptClass (tString) —
  • alId (int) —
  • abIsGlobal (bool) —
  • sContainer (tString) —
  • abUseInputCallbacks (bool) —

Returns:

  • void

cLux_AddPropType

void cLux_AddPropType(const tString &in asName,
                      const tString &in asScriptFile,
                      const tString &in asScriptClass,
                      bool abForceFullGameSave)


Parameters

  • asName (tString) —
  • asScriptFile (tString) —
  • asScriptClass (tString) —
  • abForceFullGameSave (bool) —

Returns:

  • void

cLux_AddTodoMessage

void cLux_AddTodoMessage(const tString &in asText,
                         bool abCheckForDuplicates)


Parameters

  • asText (tString) —
  • abCheckForDuplicates (bool) —

Returns:

  • void

cLux_AddTodoMessage

void cLux_AddTodoMessage(const tString &in asText)


Parameters

Returns:

  • void

cLux_ApplyUserConfig

bool cLux_ApplyUserConfig()

Returns:

  • bool

cLux_CanContinue

bool cLux_CanContinue()

Returns:

  • bool

cLux_ChangeMap

void cLux_ChangeMap(const tString &in asMapName,
                    const tString &in asStartPos,
                    const tString &in asTransferArea,
                    const tString &in asStartSound,
                    const tString &in asEndSound)


Parameters

Returns:

  • void

cLux_CheckLineOfSight

bool cLux_CheckLineOfSight(const cVector3f &in avStart,
                           const cVector3f &in avEnd,
                           bool abCheckOnlyShadowCasters,
                           bool abCheckOnlyStatic,
                           iLuxEntity@ apSkipEntity = null)


Parameters

Returns:

  • bool

cLux_CleanupData

void cLux_CleanupData()

Returns:

  • void

cLux_Continue

void cLux_Continue()

Returns:

  • void

cLux_CreateEntityComponent_BackboneTail

cLuxBackboneTail@ cLux_CreateEntityComponent_BackboneTail(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxBackboneTail@

cLux_CreateEntityComponent_BarkMachine

cLuxBarkMachine@ cLux_CreateEntityComponent_BarkMachine(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxBarkMachine@

cLux_CreateEntityComponent_CharMover

cLuxCharMover@ cLux_CreateEntityComponent_CharMover(iLuxEntity @apEntity,
                                                    iCharacterBody @apCharBody)


Parameters

Returns:

  • cLuxCharMover@

cLux_CreateEntityComponent_EdgeGlow

cLuxEdgeGlow@ cLux_CreateEntityComponent_EdgeGlow(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxEdgeGlow@

cLux_CreateEntityComponent_ForceEmitter

cLuxForceEmitter@ cLux_CreateEntityComponent_ForceEmitter(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxForceEmitter@

cLux_CreateEntityComponent_HeadTracker

cLuxHeadTracker@ cLux_CreateEntityComponent_HeadTracker(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxHeadTracker@

cLux_CreateEntityComponent_LightSensor

cLuxLightSensor@ cLux_CreateEntityComponent_LightSensor(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxLightSensor@

cLux_CreateEntityComponent_Pathfinder

cLuxPathfinder@ cLux_CreateEntityComponent_Pathfinder(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxPathfinder@

cLux_CreateEntityComponent_SoundListener

cLuxSoundListener@ cLux_CreateEntityComponent_SoundListener(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxSoundListener@

cLux_CreateEntityComponent_StateMachine

cLuxStateMachine@ cLux_CreateEntityComponent_StateMachine(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxStateMachine@

cLux_CreateHTMLImage

tString cLux_CreateHTMLImage(const tString &in asSrc,
                             const tString &in asTitle = "",
                             const cVector2l &in avSize = cVector2l_MinusOne)


Parameters

Returns:

  • tString

cLux_CreateHTMLParagraph

tString cLux_CreateHTMLParagraph(const tString &in asContent)


Parameters

Returns:

  • tString

cLux_CreateHTMLTag

tString cLux_CreateHTMLTag(const tString &in asTag,
                           const tString &in asContent = "",
                           const tString &in asParams = "")


Parameters

Returns:

  • tString

cLux_CreateScriptImGui

cLuxScriptImGui@ cLux_CreateScriptImGui(const tString &in asName,
                                        bool abRegisterForDrawing,
                                        bool abSkipResetOnRegistration = true)


Parameters

  • asName (tString) —
  • abRegisterForDrawing (bool) —
  • abSkipResetOnRegistration (bool) —

Returns:

  • cLuxScriptImGui@

cLux_DebugModeOn

bool cLux_DebugModeOn()

Returns:

  • bool

cLux_DecUnderwaterEffectUserCount

void cLux_DecUnderwaterEffectUserCount()

Returns:

  • void

cLux_DeloadMap

void cLux_DeloadMap(const tString &in asTransferArea)


Parameters

Returns:

  • void

cLux_DrawDebugText

float cLux_DrawDebugText(const tString &in asText,
                         float afY,
                         float afSize = 14,
                         cColor aColor = cColor,
                          1,
                          1,
                         bool abAddNewLine = true)


Parameters

  • asText (tString) —
  • afY (float) —
  • afSize (float) —
  • aColor (cColor) —
  • 1 (../../) —
  • 1 (../../) —
  • abAddNewLine (bool) —

Returns:

  • float

cLux_DrawHint

void cLux_DrawHint(cImGui @apImGui,
                   float afTimeStep,
                   const cImGuiLabelData &in aLabel,
                   const cVector3f &in avPosition,
                   float afLineWidth,
                   float afLineSpacing,
                   const tWString &in avTextLines,
                   const cLuxScreenTextIcon@ &in avIcons,
                   const array &in avIconsPerLine)


Parameters

Returns:

  • void

cLux_DrawScreenText

void cLux_DrawScreenText(cImGui @apImGui,
                         float afTimeStep,
                         const cImGuiLabelData &in aLabel,
                         const cVector3f &in avPosition,
                         float afLineWidth,
                         float afLineSpacing,
                         const tWString &in avTextLines,
                         const cLuxScreenTextIcon@ &in avIcons,
                         const array &in avIconsPerLine)


Parameters

Returns:

  • void

cLux_DrawSetToScreen

void cLux_DrawSetToScreen(bool abClearScreen,
                          const cColor &in aCol,
                          cGuiSet@ apSet)


Parameters

Returns:

  • void

cLux_DropPageFocus

void cLux_DropPageFocus(const tString &in asX)


Parameters

Returns:

  • void

cLux_Exit

void cLux_Exit()

Returns:

  • void

cLux_GetAchievementHandler

iLuxAchievementHandler@ cLux_GetAchievementHandler()

Returns:

  • iLuxAchievementHandler@

cLux_GetBodyEntity

iLuxEntity@ cLux_GetBodyEntity(iPhysicsBody @apBody)


Parameters

Returns:

  • iLuxEntity@

cLux_GetClosestBody

iPhysicsBody@ cLux_GetClosestBody(const cVector3f &in avStart,
                                  const cVector3f &in avDir,
                                  float afRayLength,
                                  float &out afDistance,
                                  cVector3f &out avSurfaceNormal)


Parameters

Returns:

  • iPhysicsBody@

cLux_GetClosestCharCollider

bool cLux_GetClosestCharCollider(const cVector3f &in avStart,
                                 const cVector3f &in avDir,
                                 float afRayLength,
                                 bool abCheckDynamic,
                                 cLuxClosestCharCollider @apOutput)


Parameters

Returns:

  • bool

cLux_GetClosestEntity

bool cLux_GetClosestEntity(const cVector3f &in avStart,
                           const cVector3f &in avDir,
                           float afRayLength,
                           int alIteractType,
                           bool abCheckLineOfSight,
                           cLuxClosestEntityData @apOutput)


Parameters

Returns:

  • bool

cLux_GetCurrentImGui

cImGui@ cLux_GetCurrentImGui()

Returns:

  • cImGui@

cLux_GetCurrentLanguage

const tString& cLux_GetCurrentLanguage()

Returns:

  • const tString&

cLux_GetCurrentMap

cLuxMap@ cLux_GetCurrentMap()

Returns:

  • cLuxMap@

cLux_GetCurrentUserProfilePath

tWString cLux_GetCurrentUserProfilePath()

Returns:

  • tWString

cLux_GetDefaultFont

iFontData@ cLux_GetDefaultFont()

Returns:

  • iFontData@

cLux_GetDefaultGameLanguage

tString cLux_GetDefaultGameLanguage()

Returns:

  • tString

cLux_GetDialogHandler

cLuxDialogHandler@ cLux_GetDialogHandler()

Returns:

  • cLuxDialogHandler@

cLux_GetEffectHandler

cLuxEffectHandler@ cLux_GetEffectHandler()

Returns:

  • cLuxEffectHandler@

cLux_GetEventDatabaseHandler

cLuxEventDatabaseHandler@ cLux_GetEventDatabaseHandler()

Returns:

  • cLuxEventDatabaseHandler@

cLux_GetExplorationModeActive

bool cLux_GetExplorationModeActive()

Returns:

  • bool

cLux_GetGameConfig

cConfigFile@ cLux_GetGameConfig()

Returns:

  • cConfigFile@

cLux_GetGameHudImGui

cImGui@ cLux_GetGameHudImGui()

Returns:

  • cImGui@

cLux_GetGameHudSet

cGuiSet@ cLux_GetGameHudSet()

Returns:

  • cGuiSet@

cLux_GetGameLanguageFolder

tString cLux_GetGameLanguageFolder()

Returns:

  • tString

cLux_GetGamePaused

bool cLux_GetGamePaused()

Returns:

  • bool

cLux_GetGameTime

double cLux_GetGameTime()

Returns:

  • double

cLux_GetGodModeActivated

bool cLux_GetGodModeActivated()

Returns:

  • bool

cLux_GetGuiHandler

cLuxGuiHandler@ cLux_GetGuiHandler()

Returns:

  • cLuxGuiHandler@

cLux_GetHelpGuiSet

cGuiSet@ cLux_GetHelpGuiSet()

Returns:

  • cGuiSet@

cLux_GetHudVirtualCenterScreenSize

const cVector2f& cLux_GetHudVirtualCenterScreenSize()

Returns:

  • const cVector2f&

cLux_GetHudVirtualCenterScreenStartPos

const cVector3f& cLux_GetHudVirtualCenterScreenStartPos()

Returns:

  • const cVector3f&

cLux_GetHudVirtualCenterSize

const cVector2f& cLux_GetHudVirtualCenterSize()

Returns:

  • const cVector2f&

cLux_GetHudVirtualOffset

const cVector2f& cLux_GetHudVirtualOffset()

Returns:

  • const cVector2f&

cLux_GetHudVirtualSize

const cVector2f& cLux_GetHudVirtualSize()

Returns:

  • const cVector2f&

cLux_GetHudVirtualStartPos

const cVector3f& cLux_GetHudVirtualStartPos()

Returns:

  • const cVector3f&

cLux_GetInputFocusImGui

cImGui@ cLux_GetInputFocusImGui()

Returns:

  • cImGui@

cLux_GetInputHandler

cLuxInputHandler@ cLux_GetInputHandler()

Returns:

  • cLuxInputHandler@

cLux_GetInteractionWhiteListActive

bool cLux_GetInteractionWhiteListActive()

Returns:

  • bool

cLux_GetKeyConfig

cConfigFile@ cLux_GetKeyConfig()

Returns:

  • cConfigFile@

cLux_GetLightLevelAtPos

float cLux_GetLightLevelAtPos(const cVector3f &in avPos,
                              iLight @apSkipLight,
                              float afRadiusAdd)


Parameters

Returns:

  • float

cLux_GetMainMenuFile

const tString& cLux_GetMainMenuFile()

Returns:

  • const tString&

cLux_GetMusicHandler

cLuxMusicHandler@ cLux_GetMusicHandler()

Returns:

  • cLuxMusicHandler@

cLux_GetPlayer

cLuxPlayer@ cLux_GetPlayer()

Returns:

  • cLuxPlayer@

cLux_GetPreloadMap

cLuxMap@ cLux_GetPreloadMap()

Returns:

  • cLuxMap@

cLux_GetPrevInputFocusImGui

cImGui@ cLux_GetPrevInputFocusImGui()

Returns:

  • cImGui@

cLux_GetSaveConfigAtExit

bool cLux_GetSaveConfigAtExit()

Returns:

  • bool

cLux_GetSaveHandler

cLuxSaveHandler@ cLux_GetSaveHandler()

Returns:

  • cLuxSaveHandler@

cLux_GetSoundscapeHandler

cLuxSoundscapeHandler@ cLux_GetSoundscapeHandler()

Returns:

  • cLuxSoundscapeHandler@

cLux_GetStringDuration

float cLux_GetStringDuration(const tWString &in asStr)


Parameters

Returns:

  • float

cLux_GetStringWFromDate

tWString cLux_GetStringWFromDate(const cDate &in aDate)


Parameters

Returns:

  • tWString

cLux_GetSupportExplorationMode

bool cLux_GetSupportExplorationMode()

Returns:

  • bool

cLux_GetTextCatAndEntryFromString

void cLux_GetTextCatAndEntryFromString(const tString &in asData,
                                       tString &out asOutCat,
                                       tString &out asOutEntry)


Parameters

Returns:

  • void

cLux_GetUnderwaterEffectsActive

bool cLux_GetUnderwaterEffectsActive()

Returns:

  • bool

cLux_GetUserConfig

cConfigFile@ cLux_GetUserConfig()

Returns:

  • cConfigFile@

cLux_GetUserModuleFromID

iScrUserModule_Interface@ cLux_GetUserModuleFromID(int alID)


Parameters

  • alID (int) —

Returns:

  • iScrUserModule_Interface@

cLux_GetUserModuleFromName

iScrUserModule_Interface@ cLux_GetUserModuleFromName(const tString &in asName)


Parameters

Returns:

  • iScrUserModule_Interface@

cLux_GetViewport

cViewport@ cLux_GetViewport()

Returns:

  • cViewport@

cLux_GetVoiceHandler

cLuxVoiceHandler@ cLux_GetVoiceHandler()

Returns:

  • cLuxVoiceHandler@

cLux_HasConfigLoadError

bool cLux_HasConfigLoadError(tString &out asError)


Parameters

Returns:

  • bool

cLux_HasTranslation

bool cLux_HasTranslation(const tString &in asCat,
                         const tString &in asEntry)


Parameters

Returns:

  • bool

cLux_HasUnderwaterEffectUsers

bool cLux_HasUnderwaterEffectUsers()

Returns:

  • bool

cLux_ID_Agent

cLuxAgent@ cLux_ID_Agent(tID aID)


Parameters

Returns:

  • cLuxAgent@

cLux_ID_Area

cLuxArea@ cLux_ID_Area(tID aID)


Parameters

Returns:

  • cLuxArea@

cLux_ID_Beam

cBeam@ cLux_ID_Beam(tID aID)


Parameters

Returns:

  • cBeam@

cLux_ID_Billboard

cBillboard@ cLux_ID_Billboard(tID aID)


Parameters

Returns:

  • cBillboard@

cLux_ID_BillboardGroup

cBillboardGroup@ cLux_ID_BillboardGroup(tID aID)


Parameters

Returns:

  • cBillboardGroup@

cLux_ID_Body

iPhysicsBody@ cLux_ID_Body(tID aID)


Parameters

Returns:

  • iPhysicsBody@

cLux_ID_CharacterBody

iCharacterBody@ cLux_ID_CharacterBody(tID aID)


Parameters

Returns:

  • iCharacterBody@

cLux_ID_ClothEntity

cClothEntity@ cLux_ID_ClothEntity(tID aID)


Parameters

Returns:

  • cClothEntity@

cLux_ID_Critter

cLuxCritter@ cLux_ID_Critter(tID aID)


Parameters

Returns:

  • cLuxCritter@

cLux_ID_Entity

iLuxEntity@ cLux_ID_Entity(tID aID)


Parameters

Returns:

  • iLuxEntity@

cLux_ID_Entity3D

iEntity3D@ cLux_ID_Entity3D(tID aID)


Parameters

Returns:

  • iEntity3D@

cLux_ID_ExposureArea

cExposureArea@ cLux_ID_ExposureArea(tID aID)


Parameters

Returns:

  • cExposureArea@

cLux_ID_FogArea

cFogArea@ cLux_ID_FogArea(tID aID)


Parameters

Returns:

  • cFogArea@

cLux_ID_ForceField

cForceField@ cLux_ID_ForceField(tID aID)


Parameters

Returns:

  • cForceField@

cLux_ID_GuiSetEntity

cGuiSetEntity@ cLux_ID_GuiSetEntity(tID aID)


Parameters

Returns:

  • cGuiSetEntity@

cLux_ID_Joint

iPhysicsJoint@ cLux_ID_Joint(tID aID)


Parameters

Returns:

  • iPhysicsJoint@

cLux_ID_LensFlare

cLensFlare@ cLux_ID_LensFlare(tID aID)


Parameters

Returns:

  • cLensFlare@

cLux_ID_Light

iLight@ cLux_ID_Light(tID aID)


Parameters

Returns:

  • iLight@

cLux_ID_LightMaskBox

cLightMaskBox@ cLux_ID_LightMaskBox(tID aID)


Parameters

Returns:

  • cLightMaskBox@

cLux_ID_LiquidArea

cLuxLiquidArea@ cLux_ID_LiquidArea(tID aID)


Parameters

Returns:

  • cLuxLiquidArea@

cLux_ID_MeshEntity

cMeshEntity@ cLux_ID_MeshEntity(tID aID)


Parameters

Returns:

  • cMeshEntity@

cLux_ID_ParticleSystem

cParticleSystem@ cLux_ID_ParticleSystem(tID aID)


Parameters

Returns:

  • cParticleSystem@

cLux_ID_Prop

cLuxProp@ cLux_ID_Prop(tID aID)


Parameters

Returns:

  • cLuxProp@

cLux_ID_ReverbArea

cLuxSoundscapeArea@ cLux_ID_ReverbArea(tID aID)


Parameters

Returns:

  • cLuxSoundscapeArea@

cLux_ID_RopeEntity

iRopeEntity@ cLux_ID_RopeEntity(tID aID)


Parameters

Returns:

  • iRopeEntity@

cLux_ID_SoundEntity

cSoundEntity@ cLux_ID_SoundEntity(tID aID)


Parameters

Returns:

  • cSoundEntity@

cLux_ID_SubMeshEntity

cSubMeshEntity@ cLux_ID_SubMeshEntity(tID aID)


Parameters

Returns:

  • cSubMeshEntity@

cLux_IncUnderwaterEffectUserCount

void cLux_IncUnderwaterEffectUserCount()

Returns:

  • void

cLux_IsChangingMap

bool cLux_IsChangingMap()

Returns:

  • bool

cLux_IsLoadingScreenVisible

bool cLux_IsLoadingScreenVisible()

Returns:

  • bool

cLux_IsPlayGoReady

bool cLux_IsPlayGoReady(int &out alETA)


Parameters

  • alETA (int) —

Returns:

  • bool

cLux_IsReadyToChangeMap

bool cLux_IsReadyToChangeMap()

Returns:

  • bool

cLux_IsStreamingMap

bool cLux_IsStreamingMap()

Returns:

  • bool

cLux_LoadScreenSetBarPosAndSize

void cLux_LoadScreenSetBarPosAndSize(const cVector2f &in avPos,
                                     const cVector2f &in avSize)


Parameters

Returns:

  • void

cLux_LoadScreenSetForceBackground

void cLux_LoadScreenSetForceBackground(bool abX)


Parameters

  • abX (bool) —

Returns:

  • void

cLux_LoadScreenSetUseSmallIcon

void cLux_LoadScreenSetUseSmallIcon(bool abX)


Parameters

  • abX (bool) —

Returns:

  • void

cLux_LoadScreenShowLoadingIcon

void cLux_LoadScreenShowLoadingIcon(float afTime)


Parameters

  • afTime (float) —

Returns:

  • void

cLux_MapChangeIsTransfer

bool cLux_MapChangeIsTransfer()

Returns:

  • bool

cLux_MapIsLoaded

bool cLux_MapIsLoaded()

Returns:

  • bool

cLux_OutputTextToFile

void cLux_OutputTextToFile(const tWString &in asPath,
                           const tString &in asText)


Parameters

Returns:

  • void

cLux_ParseString

tWString cLux_ParseString(const tWString &in asInput)


Parameters

Returns:

  • tWString

cLux_ParseStringIntoScreenText

void cLux_ParseStringIntoScreenText(const tWString &in asInput,
                                    cImGui @apImGui,
                                    const cLuxScreenTextFormatParameters & aFormatParams,
                                    tWString &out aOutLines,
                                    cLuxScreenTextIcon@ &out aIconArray,
                                    array &out aOutIconsPerLine,
                                    float &out afMaxLineHeight,
                                    float &out afDisplayTime,
                                    bool abTriggeredByGamepad)


Parameters

Returns:

  • void

cLux_PlayGuiSoundData

bool cLux_PlayGuiSoundData(const tString &in asName,
                           eSoundEntryType aDestType,
                           float afVolMul,
                           bool abSkipPreviousRandom)


Parameters

Returns:

  • bool

cLux_PlayGuiSoundDataEx

bool cLux_PlayGuiSoundDataEx(const tString &in asName,
                             eSoundEntryType aDestType,
                             float afVolMul,
                             bool abSkipPreviousRandom,
                             cLuxSoundExtraData @apExtraData)


Parameters

Returns:

  • bool

cLux_PreloadEntity

void cLux_PreloadEntity(const tString &in asFile)


Parameters

Returns:

  • void

cLux_PreloadGuiGfx

void cLux_PreloadGuiGfx(const tString &in asFile,
                        eImGuiGfx aType)


Parameters

Returns:

  • void

cLux_PreloadMap

void cLux_PreloadMap(const tString &in asMapName,
                     eWorldStreamPriority aPrio = eWorldStreamPriority_Normal)


Parameters

Returns:

  • void

cLux_PreloadMaterial

void cLux_PreloadMaterial(const tString &in asFile)


Parameters

Returns:

  • void

cLux_PreloadParticleSystem

void cLux_PreloadParticleSystem(const tString &in asFile)


Parameters

Returns:

  • void

cLux_PreloadSound

void cLux_PreloadSound(const tString &in asFile)


Parameters

Returns:

  • void

cLux_PreloadWebpage

void cLux_PreloadWebpage(const tString &in asX)


Parameters

Returns:

  • void

cLux_RegisterCollisionRadius

void cLux_RegisterCollisionRadius(int alX)


Parameters

  • alX (int) —

Returns:

  • void

cLux_RegisterEventListenerUserModule_AgentSetActive

void cLux_RegisterEventListenerUserModule_AgentSetActive(const tString &in asModuleName)


Parameters

Returns:

  • void

cLux_RenderBackgroundScreen

void cLux_RenderBackgroundScreen(bool abDrawFullHUD)


Parameters

  • abDrawFullHUD (bool) —

Returns:

  • void

cLux_ResetShudderEffects

void cLux_ResetShudderEffects(int alX)


Parameters

  • alX (int) —

Returns:

  • void

cLux_SaveScreenshotToFile

void cLux_SaveScreenshotToFile(const tWString &in asPath,
                               const cVector2l &in avSize = cVector2l_MinusOne,
                               bool abKeepAspect = true,
                               float afBrightness = 1.0f)


Parameters

  • asPath (tWString) —
  • avSize (cVector2l) —
  • abKeepAspect (bool) —
  • afBrightness (float) —

Returns:

  • void

cLux_ScriptDebugOn

bool cLux_ScriptDebugOn()

Returns:

  • bool

cLux_SendInputToGui

void cLux_SendInputToGui(bool abX)


Parameters

  • abX (bool) —

Returns:

  • void

cLux_SetAreaOffline

void cLux_SetAreaOffline(int alX)


Parameters

  • alX (int) —

Returns:

  • void

cLux_SetDebugInfoWindowText

void cLux_SetDebugInfoWindowText(const tString &in asText)


Parameters

Returns:

  • void

cLux_SetExplorationModeActive

void cLux_SetExplorationModeActive(bool abX)


Parameters

  • abX (bool) —

Returns:

  • void

cLux_SetGamePaused

void cLux_SetGamePaused(bool abX)


Parameters

  • abX (bool) —

Returns:

  • void

cLux_SetImGuiInputFocus

void cLux_SetImGuiInputFocus(cImGui@ apImGui,
                             bool abShowMouse)


Parameters

  • apImGui (cImGui@) —
  • abShowMouse (bool) —

Returns:

  • void

cLux_SetInteractionWhiteListActive

void cLux_SetInteractionWhiteListActive(bool abX,
                                        bool abClearList)


Parameters

  • abX (bool) —
  • abClearList (bool) —

Returns:

  • void

cLux_SetMapPreloadPriority

void cLux_SetMapPreloadPriority(eWorldStreamPriority aPrio)


Parameters

Returns:

  • void

cLux_SetUnderwaterEffectsActive

void cLux_SetUnderwaterEffectsActive(bool abX,
                                     bool abUseStartAndEndEffects)


Parameters

  • abX (bool) —
  • abUseStartAndEndEffects (bool) —

Returns:

  • void

cLux_SetupDefaultGlobalReverb

void cLux_SetupDefaultGlobalReverb(eSoundReverbPreset aType,
                                   float afFadeTime)


Parameters

Returns:

  • void

cLux_ShapeDamage

void cLux_ShapeDamage(int aShape,
                      const cMatrixf &in a_mtxTransform,
                      const cVector3f &in avOrigin,
                      float afMinDamage,
                      float afMaxDamage,
                      float afForce,
                      float afMaxImpulse,
                      int alStrength,
                      float afHitSpeed,
                      int aDamageType,
                      bool abCheckEnemies,
                      bool abCheckPlayer,
                      bool abCheckProps,
                      bool abLethalForPlayer,
                      const tString &in asSource)


Parameters

  • aShape (int) —
  • a_mtxTransform (cMatrixf) —
  • avOrigin (cVector3f) —
  • afMinDamage (float) —
  • afMaxDamage (float) —
  • afForce (float) —
  • afMaxImpulse (float) —
  • alStrength (int) —
  • afHitSpeed (float) —
  • aDamageType (int) —
  • abCheckEnemies (bool) —
  • abCheckPlayer (bool) —
  • abCheckProps (bool) —
  • abLethalForPlayer (bool) —
  • asSource (tString) —

Returns:

  • void

cLux_ShapeDamage

void cLux_ShapeDamage(iCollideShape@ aShape,
                      const cMatrixf &in a_mtxTransform,
                      const cVector3f &in avOrigin,
                      float afMinDamage,
                      float afMaxDamage,
                      float afForce,
                      float afMaxImpulse,
                      int alStrength,
                      float afHitSpeed,
                      int aDamageType,
                      bool abCheckEnemies,
                      bool abCheckPlayer,
                      bool abCheckProps,
                      bool abLethalForPlayer,
                      const tString &in asSource)


Parameters

  • aShape (iCollideShape@) —
  • a_mtxTransform (cMatrixf) —
  • avOrigin (cVector3f) —
  • afMinDamage (float) —
  • afMaxDamage (float) —
  • afForce (float) —
  • afMaxImpulse (float) —
  • alStrength (int) —
  • afHitSpeed (float) —
  • aDamageType (int) —
  • abCheckEnemies (bool) —
  • abCheckPlayer (bool) —
  • abCheckProps (bool) —
  • abLethalForPlayer (bool) —
  • asSource (tString) —

Returns:

  • void

cLux_StartMap

void cLux_StartMap(const tString &in asMapName)


Parameters

Returns:

  • void

cLux_StartNewGame

void cLux_StartNewGame()

Returns:

  • void

cLux_TestModeOn

bool cLux_TestModeOn()

Returns:

  • bool

cLux_ToAgent

cLuxAgent@ cLux_ToAgent(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxAgent@

cLux_ToArea

cLuxArea@ cLux_ToArea(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxArea@

cLux_ToCritter

cLuxCritter@ cLux_ToCritter(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxCritter@

cLux_ToLiquidArea

cLuxLiquidArea@ cLux_ToLiquidArea(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxLiquidArea@

cLux_ToProp

cLuxProp@ cLux_ToProp(iLuxEntity @apEntity)


Parameters

Returns:

  • cLuxProp@

cLux_Translate

const tWString& cLux_Translate(const tString &in asCat,
                               const tString &in asEntry)


Parameters

Returns:

  • const tWString&

cLux_TruncateTextFile

void cLux_TruncateTextFile(const tWString &in asPath,
                           const tString &in asPattern,
                           int alTimes)


Parameters

Returns:

  • void