Trigger API Reference DCEI Functions General1 - funovus/editor-wiki GitHub Wiki
Table of Contents
- [Trigger API Reference\DCEI Functions\General (2/2)](#trigger-api-referencedcei-functionsgeneral-22)
* [void EnableNavmeshCut(string prop_tag, bool enable)](#void-enablenavmeshcutstring-prop_tag-bool-enable)
* [object GetCardDamageStats()](#object-getcarddamagestats)
* [void ResetCardDamageStats()](#void-resetcarddamagestats)
* [void TriggerOnFocusChange(TypedCallback callback)](#void-triggeronfocuschangetypedcallbackbool-callback)
* [void GarbageCollect()](#void-garbagecollect)
* [int GetLuaMemorySize()](#int-getluamemorysize)
* [double GetLevelDataLoadingTime()](#double-getleveldataloadingtime)
* [void Wait(float time, bool useRealTime)](#void-waitfloat-time-bool-userealtime)
|
Trigger API Reference\DCEI Functions\General (2/2) {Trigger-API-ReferenceDCEI-FunctionsGeneral-22}
void EnableNavmeshCut(string prop_tag, bool enable) {void-EnableNavmeshCutstring-prop_tag-bool-enable}
void EnableNavmeshCut(string prop_tag, bool enable)
Enable/disable a navmesh cut according to prop tag.
DCEI.SetPropVisibility("prop_test", true)
object GetCardDamageStats()
Returns a table containing the card damage stats.
local card_damage_stats = DCEI.GetCardDamageStats()
void ResetCardDamageStats()
DCEI.ResetCardDamageStats()
void TriggerOnFocusChange(TypedCallback<bool> callback) {void-TriggerOnFocusChangeTypedCallbackbool-callback}
void TriggerOnFocusChange(TypedCallback<bool> callback)
This triggers the callback function on focus change (for the game window).
function OnFocusChange()
DCEI.LogMessage("Focus changed.")
end
DCEI.TriggerOnFocusChange(OnFocusChange)
void GarbageCollect()
DCEI.GarbageCollect()
int GetLuaMemorySize()
DCEI.LogMessage(DCEI.GetLuaMemorySize())
double GetLevelDataLoadingTime()
Returns the level data loading time.
DCEI.LogMessage(DCEI.GetLevelDataLoadingTime())
void Wait(float time, bool useRealTime)
Waits for the given amount of time. Note that Wait cannot be used inside simple callback functions or main body.
function OnFocusChange()
DCEI.LogMessage("Focus changed.")
DCEI.Wait(5, false)
DCEI.LogMessage("It has been 5 seconds since the focus changed.")
end
DCEI.TriggerOnFocusChange(OnFocusChange)