DCEI Functions
These functions are available under the DCEI namespace, ex:
DCEI.LogMessage("Hello World!")
General
- string Texture(string texture)
- void WildCastleDownloadRemoteImages(int projectId, List<string> remoteImages, TypedCallback<List<string>> callback)
- string Actor(string actor)
- string Unit(string unit)
- string SimpleUnit(string unit)
- string Stats(string stats)
- string Effect(string effect)
- string Behavior(string behavior)
- string Sound(string sound)
- string Tag(string tag)
- string Upgrade(string upgrade)
- string Font(string font)
- string Ability(string ability)
- string Weapon(string weapon)
- string Particle(string particle)
- void SetScreenSleep(bool flag)
- float GetGameTime()
- void SetSimpleUnitMapBounds(SimpleUnitMapBoundOptions options)
- object GetValueFromDataPath(String[] paths)
- bool ValidateDataPath(String[] paths)
- void TriggerAddSimulationCommandEvent(int player, TypedCallback<string, object> callback)
- void SendSimulationCommand(string command, object context)
- void TriggerAddPresentationCommandEvent(TypedCallback<string, object> callback)
- void SendPresentationCommand(int player, string command, object simulationContext)
- void ShareDataWithPresentation(string key, object data)
- object GetSharedDataFromSimulation(string key)
- void TriggerAddUpdateEvent(TypedCallback<float> callback)
- object CreateCustomIapProductData()
- object CreateCustomIapProduct(string productId, float price)
- object AddCustomIapProduct(CustomIapProductData data, CustomIapProduct product)
- float GetProtectedValue(string key)
- void ClearProtectedValue(string key)
- void SetProtectedValue(string key, float value)
- void SetEffectFieldValueForPlayer(int playerId, string effectName, String[] path, object value)
- float ApplyModifier(BehaviorModifier modifier, float value)
- bool IsPointOnNavMesh(float x, float z)
- Float2 GetClosestPointOnNavMesh(float x, float z)
- void AddNavmeshCut(string prop_tag)
- void SetPropVisibility(string prop_tag, bool visibility)
- void EnableNavmeshCut(string prop_tag, bool enable = True)
- void SetSpeedTurbo(bool turbo)
- object GetDataContextValue(string key)
- object GetCardDamageStats()
- void ResetCardDamageStats()
- void TriggerOnFocusChange(TypedCallback<bool> callback)
- void GarbageCollect()
- int GetLuaMemorySize()
- double GetLevelDataLoadingTime()
- void Wait(float time, bool useRealTime)
Log
- void LogMessage(string message)
- void LogWarning(string message)
- void LogError(string message)
- void OverwriteShipHp(int hp)
- void LogEvent(string name, string json)
- void LogEndGameStringValue(string name, string value)
- void LogEndGameNumberValue(string name, double value)
- void LogEndGameBooleanValue(string name, bool value)
- void LogEndGameUnitsTotalHp(string name, IEnumerable<string> unitNames)
- void LogEndGameUnitHps(string name, IEnumerable<string> unitNames)
- void LogEndGameUnitHpPercentage(string name, unit u)
Debug
Player
- int GetPlayerCount()
- int GetCurrentPlayerId()
- void SetPlayerTeamId(int playerId, int teamId)
- int GetPlayerTeamId(int playerId)
- void AddGold(int playerId, int amount)
- void AddGoldAsync(int playerId, int amount)
- void SetGold(int playerId, int amount)
- void SetGoldAsync(int playerId, int amount)
- int GetGold(int playerId)
- int GetUnitPlayerId(unit unit)
- int GetUnitTeamId(unit unit)
- object GetPlayerDeckCards()
Multiplayer
Unit
- string DefaultHero()
- object ExtraHeros()
- unit CreateUnitFilter(UnitFilter filter)
- unit CreateUnit(int teamId, int playerId, string unitType, float x, float z, float dx = 0, float dz = 1)
- float GetPlayerStats(int playerId, string statsName)
- void ResetPlayerStats()
- void SetUnitMass(unit unit, float massValue)
- void SetUnitSimpleTag(unit unit, SimpleTagOptions options)
- void SetSimpleHealthData(unit unit, SimpleHealthOptions options)
- void SetSimpleUnitMoveTargetUnit(unit unit, unit targetUnit)
- void SetSimpleUnitMoveTargetWorldPosition2D(unit unit, float x, float y)
- void SetSimpleUnitMoveTargetDirection(unit unit, float dx, float dy)
- void SetSimpleUnitTeamId(unit unit, int teamId)
- void RegisterSimpleAnimationSequence(int id, SimpleAnimationSequence sequence)
- void ApplyTransformAnimationToSimpleUnit(unit unit, SimpleUnitTransformAnimationOptions options)
- void ApplyTintColorAnimationToSimpleUnit(unit unit, SimpleUnitTintColorAnimationOptions options)
- void ClearTintColorAnimationToSimpleUnit(unit unit)
- void AddKillTimerToSimpleUnit(unit unit, float seconds)
- void AddRemoveTimerToSimpleUnit(unit unit, float seconds)
- void ApplySimpleMoverTargetUnit(unit unit, unit target, float speed, float accelerationMagnitude, float startSeconds, float endSeconds)
- void ApplySimpleMoverUniformAcceleration(unit unit, float velocityX, float velocityY, float accelerationX, float accelerationY, float startSeconds, float endSeconds)
- void ApplySimpleMoverSineWave(unit unit, float amplitude, float periodSeconds, float startSeconds, float endSeconds)
- void ApplySimpleMoverTargetLocation(unit unit, Float3 targetLocation, float speed, float accelerationMagnitude, float startSeconds, float endSeconds)
- void SetCollisionDamageData(unit unit, CollisionDamageApplierOptions options)
- void SetCollisionEffectTriggers(unit unit, SimpleUnitCastEffectOptions options)
- void SetArmorData(unit unit, SimpleUnitArmorOptions options)
- void SetCollisionForceData(unit unit, CollisionForceApplierOptions options)
- void SetCollisionStatsData(unit unit, CollisionStatsApplierOptions options)
- void SetCollisionMovementSpeedModifierData(unit unit, CollisionMovementSpeedModifierApplierOptions options)
- void SetSimpleUnitToDestroySelfOnCollision(unit unit)
- void SetCollisionComponentData(unit unit, CollisionOptions options)
- void RegisterSimpleUnitType(string name, SimpleUnitTypeOptions options)
- void RegisterSimpleDamageAffinity(SimpleDamageAffinityOptions options)
- void RegisterSimpleDamageNumberStyles(SimpleDamageNumberStyleOptions options)
- void SetDefaultSimpleDamageNumberStyle(SimpleDamageNumberStyleOptions options)
- void AddTransformAnimationToSimpleDamageNumberStyle(int idx, SimpleUnitTransformAnimationOptions options)
- void AddTintColorAnimationToSimpleDamageNumberStyle(int idx, SimpleUnitTintColorAnimationOptions options)
- void ShowSimpleDamageNumber(unit unit, int styleType, float damageValue)
- unit CreateSimpleUnitAsync(string name, SimpleUnitInstanceOptions options)
- unit CreateSimpleUnitSync(string name, SimpleUnitInstanceOptions options)
- int RegisterSimpleLoot(string lootName, string unitName, SimpleUnitInstanceOptions options)
- void SetSimpleUnitLootData(unit unit, string name, float dropRate)
- unit CreateUnitAsync(int teamId, int playerId, string unitType, float x, float z, float dx = 0, float dz = 1)
- unit CreateChildUnit(unit parent, string unitType, float x, float z, float dx = 0, float dz = 1)
- unit CreateChildUnitAsync(unit parent, string unitType, float x, float z)
- void KillUnit(unit unit)
- void RemoveUnit(unit unit)
- void RemoveSimpleUnit(unit unit)
- void KillSimpleUnit(unit unit)
- string GetUnitType(unit unit)
- double GetUnitTypeHealth(string unitType)
- string GetUnitDisplayName(unit unit)
- string GetUnitCategory(unit unit)
- void AttachSimpleUnitToCursor(unit unit)
- void DetachSimpleUnitFromCursor(unit unit)
- void PlaySimpleUnitAnimationClip(unit unit, string clipName, string nextClipName)
- void AttachUnit(unit childUnit, unit parentUnit, AttachOffsetOptions option)
- void DetachUnit(unit unit)
- void Move(unit unit, float x, float z)
- void Attack(unit unit, unit target)
- void DirectionalMove(unit target, float right, float up)
- void TurnUnitTowards(unit unit, float dx, float dz, float duration = 0)
- float GetHealth(unit unit)
- void AddHealth(unit unit, float value)
- void AddHealthAsync(unit unit, float value)
- void SetHealth(unit unit, float value)
- void SetUnitOwner(unit unit, int playerId)
- void SetUnitTeamId(unit unit, int teamId)
- void SetHealthValueAsync(unit unit, float amount)
- float GetMana(unit unit)
- void AddMana(unit unit, float value)
- void AddManaAsync(unit unit, float value)
- void SetMana(unit unit, float value)
- void SetManaValueAsync(unit unit, float amount)
- Float2 GetUnitFacing2D(unit unit)
- float GetUnitBounty(unit unit)
- object GetUnitBehaviorList(unit unit)
- object GetUnitWeaponList(unit unit)
- object GetUnitAbilityList(unit unit)
- void ApplyTag(unit unit, string tagName, float duration, int stackCount)
- void RemoveTag(unit unit, string tagName, int stackCount = 0)
- int GetUnitTagCount(unit unit, string tagName)
- object GetUnitTagList(unit unit)
- float GetUnitTotalDamage(unit unit)
- Float2 GetUnitRallyPoint(unit unit)
- int GetUnitWaypointNodeIndex(unit unit)
- Float2 GetUnitPosition2D(unit unit)
- Float3 GetUnitPosition3D(unit unit)
- void SetUnitPosition2D(unit unit, float x, float z)
- void SetUnitPosition3D(unit unit, float x, float y, float z)
- void SetUnitPosition2DWithInterpolation(unit unit, float x, float z)
- void SetUnitPosition3DWithInterpolation(unit unit, float x, float y, float z)
- void SetUnitPosition2DAsync(unit unit, float x, float z)
- void SetUnitPosition3DAsync(unit unit, float x, float y, float z)
- void SetUnitPosition2DWithInterpolationAsync(unit unit, float x, float z)
- void SetUnitPosition3DWithInterpolationAsync(unit unit, float x, float y, float z)
- Float3 GetUnitRotationEuler(unit unit)
- void SetUnitRotationEuler(unit unit, float x, float y, float z)
- void MoveAttack(unit target, float x, float z)
- bool UnitExists(unit unit)
- bool SimpleUnitExists(unit unit)
- bool UnitIsAlive(unit unit)
- bool UnitIsMoving(unit unit)
- void EnableUnitSelection(unit target)
- void DisableUnitSelection(unit target)
- void ShowUnitCustomHealthBar(unit unit, bool show)
- void ConfigStatusBar(Float3 OffsetInStatusDisplay, Float3 DistanceBetweenIcons, int MaxDisplayCount = 3)
- void RegisterBehaviorStatusIcon(string behaviorName, string actorName, int priority = 0)
- float GetMaxShield(unit unit)
- void SetMaxShield(unit unit, float value)
- void SetMaxShieldAsync(unit unit, float value)
- float GetShield(unit unit)
- void AddShield(unit unit, float value)
- void SetShield(unit unit, float value)
- void AddShieldAsync(unit unit, float value)
- void SetShieldValueAsync(unit unit, float amount)
- float GetMaxHealth(unit unit)
- void SetMaxHealth(unit unit, float value)
- void SetMaxHealthAsync(unit unit, float value)
- float GetMaxMana(unit unit)
- void SetMaxMana(unit unit, float value)
- void SetMaxManaAsync(unit unit, float value)
- void SetGoldBounty(unit unit, float amount)
- void SetGoldBountyAsync(unit unit, float amount)
- void ApplyWaypoint(unit unit, string waypointName, float waypointDispersal)
- void ApplyWaypoint(unit unit, WaypointOptions option)
- object GetWaypointPaths(bool includeRallyDisabledLanes)
- Float2 GetWaypointPathStartPosition(string name, float dispersal = 0.5)
- void FollowUnit(unit unit, unit targetUnit, float offsetX, float offsetY, float distanceMax)
- void FollowUnitWithOffset(unit unit, unit targetUnit, float offset)
- void ClearFollowUnit(unit unit)
- void SelectUnit(unit unit)
- void DeselectUnit(unit unit)
- unit FindUnit(string name)
- object FindUnitsByPlayerId(int playerId)
- object FindUnitsByTeamId(int teamId)
- object FindSimpleUnitsByName(string name)
- object FindSimpleUnitsByPlayerId(int playerId)
- object FindUnits(string name)
- unit FindUnitAtPosition(string name, float x, float z)
- bool IsUnitSelected(unit unit)
Effect
- string GetEffectType(string effectName)
- void CreateEffectAtSelf(string effectName, unit target)
- void CreateEffectAtUnit(string effectName, unit target, unit caster, unit source = default)
- void CreateEffectAtPosition(string effectName, unit caster, float x, float z)
- double EvaluateEffectHookExpression(string name)
- object GetEffectHookFieldValue(String[] path)
- void SetEffectHookFieldValue(String[] path, object value)
Custom Data
- object GetAllCustomData()
- object GetCustomDataByType(string typeName)
- object GetDefaultCustomDataByType(string typeName)
- object GetCustomDataByInstance(string typeName, string instanceName)
Behavior
- int GetUnitBehaviorStackCount(unit unit, string behaviorName)
- void ApplyBehaviorToSelf(unit unit, string behaviorName, int count = 1)
- void ApplyBehaviorToUnit(unit caster, unit source, unit target, string behaviorName, int count = 1)
- void RemoveBehavior(unit unit, string behaviorName, int count = 0)
- void SetBehaviorDuration(unit unit, string behaviorName, float duration, bool extendDuration)
- void ApplyBehaviorAsync(unit unit, string behaviorName)
- void RemoveBehaviorAsync(unit unit, string behaviorName)
- void ApplyBehaviorCountAsync(unit unit, string behaviorName, int count)
- void RemoveBehaviorCountAsync(unit unit, string behaviorName, int count)
- void ApplyBehaviorWithDurationAsync(unit unit, string behaviorName, float duration, bool extendDuration)
Camera
- void SetEnabledCameraClamp(bool set)
- void SetEnabledCameraClampForPlayer(int player, bool set)
- void SetCameraFocusUnit(unit unit, float delay, float offsetX = 0, float offsetY = 0)
- void ClearCameraFocusUnit()
- void SetCameraFocusUnitForPlayer(int player, unit unit, float delay, float offsetX = 0, float offsetY = 0)
- void ClearCameraFocusUnitForPlayer(int player)
- void SetCameraFocus(float x, float y, float duration = 1, bool useRealTime = False)
- void SetCameraFocusSmoothOvertimeForPlayer(int player, float x, float y, float duration, bool useRealTime = False)
- void SetCameraDistance(float targetDistance, float duration = 1, bool useRealTime = False)
- void SetCameraOrthographicSize(float targetSize, float duration, bool useRealTime = False)
- void SetCameraMinOrthographicSize(float targetSize)
- void SetCameraMaxOrthographicSize(float targetSize)
- float GetCameraOrthographicSize()
- void SetCameraDistanceSmoothOvertimeForPlayer(int player, float targetDistance, float duration, bool useRealTime = False)
- void SetCameraPitchSmoothOvertime(float targetPitchDeg, float duration, bool useRealTime = False)
- void SetCameraPitchSmoothOvertimeForPlayer(int player, float targetPitchDeg, float duration, bool useRealTime = False)
- void SetCameraYawSmoothOvertime(float targetYawDeg, float duration, bool useRealTime = False)
- void SetCameraYawSmoothOvertimeForPlayer(int player, float targetYawDeg, float duration, bool useRealTime = False)
- float GetCameraPitch()
- float GetCameraYaw()
- float GetCameraMaxDistance()
- float GetCameraMinDistance()
- Float2 GetCameraCurrentFocalPoint()
- Float2 GetCameraBoundsCenterPoint()
- float GetCameraBoundsHeight()
- float GetCameraBoundsWidth()
- float GetCameraTargetPointMaxDistance(float x, float y)
- void BlockCameraInput(bool set)
- void BlockCameraInputForPlayer(int player, bool set)
- void SetCameraVisibleAreaCenter(float x, float y)
- void SetCameraVisibleAreaWidth(float width)
- void SetCameraVisibleAreaLength(float length)
- void SetCameraVisibleAreaWidth(float width, bool updateMaxDistance)
- void SetCameraVisibleAreaLength(float length, bool updateMaxDistance)
- void SetCameraVisibleAreaCenterForPlayer(int player, float x, float y)
- void SetCameraVisibleAreaWidthForPlayer(int player, float width)
- void SetCameraVisibleAreaLengthForPlayer(int player, float length)
- void SetCameraVisibleAreaWidthForPlayer(int player, float width, bool updateMaxDistance)
- void SetCameraVisibleAreaLengthForPlayer(int player, float length, bool updateMaxDistance)
- void UsePostProcessingOutline(float width)
UI
- void ShowFeedbackMessage(string message)
- void ShowSystemUi(int typeId)
- void ShowUnitStatusUi(int id, unit unit)
- void ShowUnitStatusUiForPlayer(int id, unit unit, int player)
- void SetUnitHealthBarUiScale(float scale)
- void SetGoldRewardTextScale(float scale)
- void ShowSpeechBubble(unit unit, int width, string content, string title)
- void ShowSpeechBubble(unit unit, int width, string content, string title, TextOptions options)
- void ShowUnitLabel(unit unit, string content)
- void ShowUnitLabel(unit unit, string content, UnitLabelOptions options)
- void HideUnitLabel(unit unit)
- void ShowFloatingText(float x, float y, float z, string content)
- void ShowFloatingText(Float3 pos, string content, float stayDuration, int animationType, float animationDuration, TextOptions options)
- void ShowFloatingTextWithOptions(Float3 pos, string content, float stayDuration, int animationType, float animationDuration, TextOptions options)
- void ShowFloatingTextAtUnit(unit unit, string content, float stayDuration, int animationType, float animationDuration, UnitLabelOptions options)
- void HideSpeechBubble(unit unit)
- void ShowUnitStatusUiInSlot(int id, unit unit, int slotKey)
- void HideUnitStatusUi(int id, unit unit)
- void HideUnitStatusUiForPlayer(int id, unit unit, int player)
- void ShowMessageWithButtonText(string title, string content, string button, string image1, string image2, string image3)
- void ShowBigHeadMessage(string title, string message, string image)
- void ShowBigHeadMessage(string title, string message, string image, BigHeadMessageOptions options)
- void HideBigHeadMessage()
- void ShowScreenMask(float alpha = 0, ScreenBackgroundOptions options = default)
- void HideScreenMask()
- void TakeScreenShot(string fileName, float delay = 0, int quality = 1)
- int TakeScreenShotWildSky(float delay = 0)
- bool DeleteScreenShot(int key)
- void ShowSlowMotionEffect()
- void HideSlowMotionEffect()
Input
- Float2 GetMouseWorldPosition2D()
- Float2 GetTouchWorldPosition2D()
- Float2 GetSwipeScreenPosition()
- void HideJoystick(int joystickId = 0)
- void ShowJoystick(int joystickId = 0)
- bool HasUserInput()
Math
- float Random(float min, float max)
- object CreateRandomGenerator(int seed)
- int NextRandomInteger(object generator, int max)
Map
- string GetLevel()
- string GetLevelName()
- void PlayLevel(string path, string projectName, string data = null, object usedUnits = null)
- string GetPlayLevelData()
Region
- Region CreateRegion(float x, float z, float w, float h)
- void RemoveRegion(Region region)
- Region FindRegion(string name)
- bool RegionExists(string name)
- string GetRegionName(Region region)
- Float2 GetRandomPointInRegion(Region region)
- Float2 GetCenterOfRegion(Region region)
- Float2 GetSizeOfRegion(Region region)
- bool CheckPointInRegion(Region region, float x, float z)
- object GetUnitsInRegion(Region region)
- void HideRegion(Region region)
- void RevealRegion(Region region)
- void MoveRegion(Region region, float x, float z)
Upgrade
Custom UI
- void SetSelectedUi(InGameUILayoutComponent ui)
- void WaitForUiUpdateToComplete(TypedCallback callback)
- InGameUILayoutComponent GetUiRootFrame()
- Float2 GetUiCanvasSize(bool ignoreSafeArea = False)
- float SetUiSizeMultiplier(float multiplier)
- InGameUILayoutComponent GetUiRootFrameForPlayer(int player)
- void DestroyFrame(InGameUILayoutComponent ui)
- bool FrameExists(InGameUILayoutComponent ui)
- InGameUILayoutComponent GetParentFrame(InGameUILayoutComponent item)
- InGameUILayoutComponent CreateFrame(InGameUILayoutComponent parent)
- float GetFrameWidth(InGameUILayoutComponent ui)
- float GetFrameHeight(InGameUILayoutComponent ui)
- void SetFrameUseImageSizeRatio(InGameUILayoutComponent ui, float ratio)
- void SetFrameAlpha(InGameUILayoutComponent ui, float alpha)
- InGameUILayoutComponent CreateMaskFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateStencilMaskFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateHighlightFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateCameraFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateVStackFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateHStackFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateGridFrame(InGameUILayoutComponent parent)
- void SetGridFrameLeftAlignment(InGameUILayoutComponent ui)
- void SetGridFrameRightAlignment(InGameUILayoutComponent ui)
- void SetGridFrameHorizontalCenterAlignment(InGameUILayoutComponent ui)
- void SetGridFrameTopAlignment(InGameUILayoutComponent ui)
- void SetGridFrameBottomAlignment(InGameUILayoutComponent ui)
- void SetGridFrameVerticalCenterAlignment(InGameUILayoutComponent ui)
- InGameUILayoutComponent CreateHScrollFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateVScrollFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateScrollFrame(InGameUILayoutComponent parent)
- int GetFrameIndexInParent(InGameUILayoutComponent item)
- void SetFrameIndexInParent(InGameUILayoutComponent item, int index)
- int GetChildrenFrameCount(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateButtonFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateTextFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateUserInputTextFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateInputFrame(InGameUILayoutComponent parent)
- InGameUILayoutComponent CreateFrameFromXml(InGameUILayoutComponent parent, string name)
- void UpdateFrame(InGameUILayoutComponent ui, object callback)
- object GetFrameState(InGameUILayoutComponent ui)
- object GetFrameController(InGameUILayoutComponent ui)
- InGameUILayoutComponent GetChildFrameById(InGameUILayoutComponent ui, string id)
- string GetXmlConstant(string name)
- object GetXmlFrames()
- object GetChildrenFramesIdAndFrameType(InGameUILayoutComponent ui)
- bool IsUiRootFrame(InGameUILayoutComponent ui)
- void SetCameraFrameViewportSize(InGameUILayoutComponent ui, int x, int y, bool discardDepth = False)
- void SetCameraFrameViewportWorldPosition(InGameUILayoutComponent ui, float x, float y, float z)
- void SetCameraFrameViewportRotation(InGameUILayoutComponent ui, float x, float y, float z)
- void SetGridFrameCellWidth(InGameUILayoutComponent ui, float width)
- void SetGridFrameCellHeight(InGameUILayoutComponent ui, float height)
- Tweener AnimateCameraFrameViewportWorldPosition(InGameUILayoutComponent ui, float x, float y, float z, float duration, Ease ease)
- Tweener AnimateCameraFrameViewportRotation(InGameUILayoutComponent ui, float x, float y, float z, float duration, Ease ease)
- Tweener AnimateCameraFrameOrthographicViewportSize(InGameUILayoutComponent ui, float size, float duration, Ease ease)
- void SetCameraFrameCullingMask(InGameUILayoutComponent ui, int mask)
- void SetCameraFrameBackgroundColor(InGameUILayoutComponent ui, ColorRGBA color)
- void SetCameraFrameViewportOrthographic(InGameUILayoutComponent ui, bool set)
- void SetCameraFrameOrthographicViewportSize(InGameUILayoutComponent ui, float size)
- InGameUILayoutComponent CreateMiniMapFrame(InGameUILayoutComponent parent, bool hideTerrain = False)
- void SetCameraFrameEffectColor(InGameUILayoutComponent ui, ColorRGB color, float saturation, float contrast, float brightness)
- InGameUILayoutComponent GetScrollFrameContent(InGameUILayoutComponent parent)
- void SetScrollFrameScrollPosition(InGameUILayoutComponent ui, float position)
- float GetScrollFrameScrollPosition(InGameUILayoutComponent ui)
- void SetScrollFrameScrollPosition2D(InGameUILayoutComponent ui, Float2 position)
- Float2 GetScrollFrameScrollPosition2D(InGameUILayoutComponent ui)
- void SetScrollFrameScrollInertia(InGameUILayoutComponent ui, bool value)
- void SetScrollFrameScrollEnable(InGameUILayoutComponent ui, bool value)
- void SetScrollFrameScrollDecelerationRate(InGameUILayoutComponent ui, float value)
- void SetScrollFrameScrollContentAlignment(InGameUILayoutComponent ui, string value)
- void SetScrollFrameSnapEnabled(InGameUILayoutComponent ui, bool value)
- void SetScrollFrameSnapStepSize(InGameUILayoutComponent ui, float value)
- void SetScrollFrameSnapStepCount(InGameUILayoutComponent ui, int value)
- void SetScrollFrameSnapThreshold(InGameUILayoutComponent ui, float value)
- void SetScrollFrameSnapSpeed(InGameUILayoutComponent ui, float value)
- void SetTextFrameRtlSupport(InGameUILayoutComponent text, bool value)
- void SetTextFrameAlignment(InGameUILayoutComponent text, string alignment)
- void SetTextFrameWrapping(InGameUILayoutComponent text, bool enable)
- void SetTextFrameOverflow(InGameUILayoutComponent text, bool enable)
- void SetTextFrameText(InGameUILayoutComponent text, string content)
- void SetTextFrameTextExpression(InGameUILayoutComponent text, string content)
- void SetTextFrameFontSize(InGameUILayoutComponent text, float size)
- void SetTextFrameFontSizeMin(InGameUILayoutComponent text, float size)
- void SetTextFrameFontSizeMax(InGameUILayoutComponent text, float size)
- void SetTextFrameColor(InGameUILayoutComponent text, ColorRGB color)
- void SetTextFrameOutline(InGameUILayoutComponent text, bool outline)
- void SetTextFrameShadow(InGameUILayoutComponent text, bool enableShadow)
- void SetTextFrameOutlineOutside(InGameUILayoutComponent text, bool outside)
- void SetTextFrameOutlineColor(InGameUILayoutComponent text, ColorRGBA color)
- void SetTextFrameOutlineWidth(InGameUILayoutComponent text, float width)
- void SetTextFrameOutlineSoftness(InGameUILayoutComponent text, float softness)
- void SetTextFrameShadowWidth(InGameUILayoutComponent text, float width)
- void SetTextFrameShadowColor(InGameUILayoutComponent text, ColorRGBA color)
- void SetTextFrameShadowSoftness(InGameUILayoutComponent text, float softness)
- string GetInputFrameText(InGameUILayoutComponent text)
- void SetInputFrameText(InGameUILayoutComponent text, string content)
- void SetInputFrameFontSize(InGameUILayoutComponent text, float size)
- void SetInputFrameColor(InGameUILayoutComponent text, ColorRGB color)
- void SetInputFrameWrapping(InGameUILayoutComponent text, bool enable)
- void SetInputFramePlaceholder(InGameUILayoutComponent text, string content)
- void SetInputFramePlaceholderFontSize(InGameUILayoutComponent text, float size)
- void SetInputFramePlaceholderColor(InGameUILayoutComponent text, ColorRGB color)
- void SetInputFramePlaceholderOutline(InGameUILayoutComponent text, bool outline)
- void SetUserInputTextFrameText(InGameUILayoutComponent text, string content)
- void SetUserInputTextFrameFontSize(InGameUILayoutComponent text, float size)
- void SetUserInputTextFrameColor(InGameUILayoutComponent text, ColorRGB color)
- void SetUserInputTextFrameWrapping(InGameUILayoutComponent text, bool enable)
- void SetFrameMinSize(InGameUILayoutComponent ui, float width, float height)
- void SetFrameMinWidth(InGameUILayoutComponent ui, float width)
- void SetFrameMinHeight(InGameUILayoutComponent ui, float height)
- void SetFrameMaxSize(InGameUILayoutComponent ui, float width, float height)
- void SetFrameMaxWidth(InGameUILayoutComponent ui, float width)
- void SetFrameMaxHeight(InGameUILayoutComponent ui, float height)
- void SetFrameSize(InGameUILayoutComponent ui, float width, float height)
- InGameUILayoutComponent CreateListFrame(InGameUILayoutComponent parent)
- void SetListFrameItemName(InGameUILayoutComponent ui, string itemName)
- void SetListFrameItemSize(InGameUILayoutComponent ui, float itemSize)
- void SetListFrameItemDataCallback(InGameUILayoutComponent ui, TypedCallback<InGameUILayoutComponent, int> itemDataCallback)
- void SetListFrameItemCount(InGameUILayoutComponent ui, int itemCount)
- void RefreshListFrameItems(InGameUILayoutComponent ui, int startIndex, int endIndex)
- InGameUILayoutComponent CreateSpineFrame(InGameUILayoutComponent parent)
- void SetSpineFrameAsset(InGameUILayoutComponent ui, string name)
- object GetSpineFrameAnimations(InGameUILayoutComponent ui)
- void PlaySpineFrameAnimation(InGameUILayoutComponent ui, string name, bool loop = False, int track = 0)
- void SetFrameWidth(InGameUILayoutComponent ui, float width)
- void SetFrameHeight(InGameUILayoutComponent ui, float height)
- void FlipFrameHorizontal(InGameUILayoutComponent ui, bool dontFlipChildrenFrames = True)
- void FlipFrameVertical(InGameUILayoutComponent ui, bool dontFlipChildrenFrames = True)
- void SetFrameMatchParent(InGameUILayoutComponent ui, bool matchWidth, bool matchHeight)
- void SetFramePadding(InGameUILayoutComponent ui, float padding)
- void SetFramePaddingLeft(InGameUILayoutComponent ui, float padding)
- void SetFramePaddingRight(InGameUILayoutComponent ui, float padding)
- void SetFramePaddingTop(InGameUILayoutComponent ui, float padding)
- void SetFramePaddingBottom(InGameUILayoutComponent ui, float padding)
- void SetFrameSpacing(InGameUILayoutComponent ui, float spacing)
- void SetFrameLeftAlignment(InGameUILayoutComponent ui)
- void SetFrameRightAlignment(InGameUILayoutComponent ui)
- void SetFrameTopAlignment(InGameUILayoutComponent ui)
- void SetFrameBottomAlignment(InGameUILayoutComponent ui)
- void SetFrameCenterAlignment(InGameUILayoutComponent ui)
- void SetFrameLeftAlignmentInParent(InGameUILayoutComponent ui)
- void SetFrameRightAlignmentInParent(InGameUILayoutComponent ui)
- void SetFrameTopAlignmentInParent(InGameUILayoutComponent ui)
- void SetFrameBottomAlignmentInParent(InGameUILayoutComponent ui)
- void SetFrameCenterAlignmentInParent(InGameUILayoutComponent ui)
- void SetFrameHorizontalOffsetInParent(InGameUILayoutComponent ui, float value)
- void SetFrameVerticalOffsetInParent(InGameUILayoutComponent ui, float value)
- void SetFrameReverseChildrenFrameOrder(InGameUILayoutComponent ui, bool value)
- void SetFrameUsingFlexLayout(InGameUILayoutComponent ui)
- bool IsFrameUsingFlexLayout(InGameUILayoutComponent ui)
- void SetFrameFlexDirection(InGameUILayoutComponent ui, YogaFlexDirection direction)
- void SetFrameFlexGrow(InGameUILayoutComponent ui, float grow)
- void SetFrameFlexShrink(InGameUILayoutComponent ui, float shrink)
- void SetFrameFlexWrap(InGameUILayoutComponent ui, YogaWrap wrap)
- void SetFrameJustifyContent(InGameUILayoutComponent ui, YogaJustify justifyContent)
- void SetFrameAlignItems(InGameUILayoutComponent ui, YogaAlign alignItems)
- void SetFrameAlignContent(InGameUILayoutComponent ui, YogaAlign alignContent)
- void SetFrameAlignSelf(InGameUILayoutComponent ui, YogaAlign alignSelf)
- void SetFrameMarginLeft(InGameUILayoutComponent ui, float marginLeft)
- void SetFrameMarginRight(InGameUILayoutComponent ui, float marginRight)
- void SetFrameMarginTop(InGameUILayoutComponent ui, float marginTop)
- void SetFrameMarginBottom(InGameUILayoutComponent ui, float marginBottom)
- void SetFrameWidthPercent(InGameUILayoutComponent ui, float widthPercent)
- void SetFrameHeightPercent(InGameUILayoutComponent ui, float heightPercent)
- void SetFramePosition(InGameUILayoutComponent ui, YogaPositionType position)
- void SetFrameLeft(InGameUILayoutComponent ui, float left)
- void SetFrameRight(InGameUILayoutComponent ui, float right)
- void SetFrameTop(InGameUILayoutComponent ui, float top)
- void SetFrameBottom(InGameUILayoutComponent ui, float bottom)
- void SetFrameAspectRatio(InGameUILayoutComponent ui, float aspectRatio)
- void SetFrameImage(InGameUILayoutComponent ui, string name)
- void SetFrameImageExpression(InGameUILayoutComponent ui, string expression)
- void SetFrameImageGrayScaleExpression(InGameUILayoutComponent ui, string expression)
- void SetButtonDefaultClickAnimationEnabled(InGameUILayoutComponent ui, bool enable)
- bool GetButtonDefaultClickAnimationEnabled(InGameUILayoutComponent ui)
- void SetButtonFrameEnableExpression(InGameUILayoutComponent ui, string expression)
- void SetFrameImageTiled(InGameUILayoutComponent ui, bool setTiled)
- void SetFramePixelsPerUnitMultiplier(InGameUILayoutComponent ui, float pixelsPerUnitMultiplier)
- void SetFrameImageFillAmount(InGameUILayoutComponent ui, float fill)
- float GetFrameImageFillAmount(InGameUILayoutComponent ui)
- void SetFrameImageFillHorizontal(InGameUILayoutComponent ui)
- void SetFrameImageFillVertical(InGameUILayoutComponent ui)
- void SetFrameImageFillRadial(InGameUILayoutComponent ui)
- void SetFrameImageFillOrigin(InGameUILayoutComponent ui, int origin)
- void SetFrameImageFillAmountExpression(InGameUILayoutComponent ui, string expression, bool inverse = False)
- void SetFrameWidthExpression(InGameUILayoutComponent ui, string expression)
- void SetFrameHeightExpression(InGameUILayoutComponent ui, string expression)
- void SetFrameImageColor(InGameUILayoutComponent ui, ColorRGBA color)
- void SetFrameImageColorExpression(InGameUILayoutComponent ui, string r, string g, string b, string a)
- void SetFrameImageGrayScale(InGameUILayoutComponent ui, bool isGrayScale)
- void SetFrameTooltipText(InGameUILayoutComponent ui, string text)
- void SetFrameTooltipOffset(int offset)
- void SetFrameTooltipStyle(int style)
- void SetFrameTooltipPosition(int position)
- void SetFrameTooltipImage(string name)
- void SetFrameTooltipFontSize(int size)
- void SetFrameTooltipPadding(int left, int right, int top, int bottom)
- void SetFrameTooltipMaxWidth(int width)
- void SetFrameTooltipTextColor(ColorRGB color)
- void SetButtonFrameClickSound(InGameUILayoutComponent ui, string path)
- void SetButtonFrameEnable(InGameUILayoutComponent ui, bool enable)
- void SetButtonFrameDisabledImage(InGameUILayoutComponent ui, string name)
- void SetFrameRotation(InGameUILayoutComponent ui, float degrees)
- void SetFrameRotation3D(InGameUILayoutComponent ui, float x, float y, float z)
- void BindUnitData(string name, unit unit)
- void BindLuaTable(string name, object value)
- bool IsFrameActive(InGameUILayoutComponent ui)
- void SetFrameActive(InGameUILayoutComponent ui, bool value)
- void SetFrameBlockInput(InGameUILayoutComponent ui, bool value)
- void AttachFrameToUnit(InGameUILayoutComponent ui, unit unit, UnitLabelOptions options, bool useCurrentUiRoot = False)
- void SetMouseCursorFrame(InGameUILayoutComponent ui)
- void SetMouseCursorFrameForPlayer(int player, InGameUILayoutComponent ui)
- void AttachOffscreenUnitIndicatorFrame(InGameUILayoutComponent ui, unit unit, InGameUILayoutComponent rotatingPointerChildFrame = null)
- void SetOffscreenUnitIndicatorFrameCanvasOffset(InGameUILayoutComponent ui, Float2 offset)
- void MoveFrameToTop(InGameUILayoutComponent ui)
- void MoveFrameToBottom(InGameUILayoutComponent ui)
- void SetPauseButtonFrame(InGameUILayoutComponent ui)
- void SetPauseMenuFrame(InGameUILayoutComponent ui)
- void ShowPauseMenuFrame()
- void HidePauseMenuFrame()
- void SetPauseMenuFrameMusicButton(InGameUILayoutComponent ui)
- void SetPauseMenuFrameSoundButton(InGameUILayoutComponent ui)
- void SetPauseMenuFrameResumeButton(InGameUILayoutComponent ui)
- void SetPauseMenuFrameQuitButton(InGameUILayoutComponent ui)
- void SetPauseMenuFrameRestartButton(InGameUILayoutComponent ui)
- void SetPauseMenuFramePlayLevelButton(InGameUILayoutComponent ui, string path, string displayName)
- void SuppressPauseMenuOnApplicationPause()
- Float3 GetFrameCanvasPosition3D(InGameUILayoutComponent ui)
- Float3 GetCanvasPositionFromWorldPosition(Float3 worldPosition)
- Float3 GetWorldPositionFromCanvasPosition(Float3 canvasPosition)
- void MoveFrameToCanvasPosition(InGameUILayoutComponent ui, Float3 canvasPosition, Offset offset = default)
- void SetFrameAnimationLoops(Tweener tweener, int loops, LoopType loopType)
- void StopFrameAnimation(Tweener tweener, bool waitAnimationComplete = False)
- void PauseFrameAnimation(Tweener tweener)
- void ResumeFrameAnimation(Tweener tweener)
- void SetFrameAnimationSpeed(Tweener tweener, float speed)
- Tweener AnimateFrameImageColor(InGameUILayoutComponent ui, ColorRGBA start, ColorRGBA end, float duration, Ease ease)
- Tweener AnimateFrameImageColor(InGameUILayoutComponent ui, ColorRGBA end, float duration, Ease ease)
- Tweener AnimateTextFrameColor(InGameUILayoutComponent ui, ColorRGB start, ColorRGB end, float duration, Ease ease)
- Tweener AnimateTextFrameColor(InGameUILayoutComponent ui, ColorRGB end, float duration, Ease ease)
- Tweener AnimateFrameScale(InGameUILayoutComponent ui, Float3 start, Float3 end, float duration, Ease ease)
- Tweener AnimateFrameScale(InGameUILayoutComponent ui, Float3 end, float duration, Ease ease)
- Tweener AnimateFrameImageFillAmount(InGameUILayoutComponent ui, float start, float end, float duration, Ease ease)
- Tweener AnimateFrameImageFillAmount(InGameUILayoutComponent ui, float end, float duration, Ease ease)
- Tweener AnimateFrameRotation(InGameUILayoutComponent ui, Float3 start, Float3 end, float duration, Ease ease)
- Tweener AnimateFrameRotation(InGameUILayoutComponent ui, Float3 end, float duration, Ease ease)
- Tweener AnimateFrameAlpha(InGameUILayoutComponent ui, float start, float end, float duration, Ease ease)
- Tweener AnimateFrameAlpha(InGameUILayoutComponent ui, float end, float duration, Ease ease)
- Tweener AnimateFrameHorizontalOffset(InGameUILayoutComponent ui, float start, float end, float duration, Ease ease)
- Tweener AnimateFrameHorizontalOffset(InGameUILayoutComponent ui, float end, float duration, Ease ease)
- Tweener AnimateFrameVerticalOffset(InGameUILayoutComponent ui, float start, float end, float duration, Ease ease)
- Tweener AnimateFrameVerticalOffset(InGameUILayoutComponent ui, float end, float duration, Ease ease)
- Tweener AnimateFrameScrollPosition(InGameUILayoutComponent ui, float start, float end, float duration, Ease ease)
- Tweener AnimateFrameScrollPosition(InGameUILayoutComponent ui, float end, float duration, Ease ease)
- Tweener AnimateFrameScrollPosition2D(InGameUILayoutComponent ui, Float2 start, Float2 end, float duration, Ease ease)
- Tweener AnimateFrameScrollPosition2D(InGameUILayoutComponent ui, Float2 end, float duration, Ease ease)
- Float2 GetScreenSizeInPixel()
- Float2 GetScreenSafeAreaOffsetInPixel()
- Float2 GetScreenSafeAreaSizeInPixel()
Weapon
- bool IsUnitWeaponEnabled(unit unit, string weaponName)
- BehaviorModifier GetUnitWeaponDamageModifier(unit unit, string weaponName)
- BehaviorModifier GetUnitWeaponCriticalChanceModifier(unit unit, string weaponName)
- BehaviorModifier GetUnitWeaponAttackSpeedModifier(unit unit, string weaponName)
- float GetUnitWeaponCriticalChance(string weaponName)
- float GetUnitWeaponAttackSpeed(string weaponName)
- void AddUnitWeapon(string unitType, string weaponName)
- void RemoveUnitWeapon(string unitType, string weaponName)
Ability
- bool IsUnitAbilityEnabled(unit unit, string abilityName)
- float GetUnitAbilityCooldown(unit unit, string abilityName)
- AbilityCost GetAbilityCost(string abilityName)
- bool UnitHasAbility(unit unit, string abilityName)
- bool UnitTypeHasAbility(string unitType, string abilityName)
- int GetUnitAbilityCurrentCharge(unit unit, string abilityName)
- void SetUnitAbilityCooldown(unit unit, string abilityName, float seconds)
- void SetUnitAbilityMaxCooldown(unit unit, string abilityName, float seconds)
- void CastAbilityAtUnit(string abilityName, unit caster, unit target, bool immediate = False)
- void CastAbilityEffect(string abilityName, unit caster, unit target)
- void CancelAbilities(unit unit)
- void EnterTargetingMode(unit unit, string abilityName)
- void ExitTargetingMode()
- void AddUnitAbility(string unitType, string abilityName)
- void RemoveUnitAbility(string unitType, string abilityName)
- void CastAbilityAtPosition(string abilityName, unit caster, float x, float z, bool immediate = False)
- void CastAbilityEffectAtPosition(string abilityName, unit caster, float x, float z)
- void SetAbilityCurrentCharge(unit unit, string abilityName, int chargeCount, bool clampChargeCount)
Tower Defense
- void ShowDotManaBar(unit unit)
- void ShowDotHealthBar(unit unit)
- void ShowShipHealthBar(unit unit)
- Float2 FindClosestPointOnRoad(float x, float z, bool ignoreRallyDisabledLanes)
- void ExitTargetingModeAndDeselectUnits()
- void IncreaseTowerBuildLimit(int value)
Game
- void SetUpdateFrequency(float value)
- void ClearUpdateFrequency()
- float GetUpdateFrequency()
- void SetSpeedFactor(float value)
- float GetSpeedFactor()
- void SetVictory()
- void SetDefeat()
- void SetVictoryForPlayer(int player, string result = null)
- void SetDefeatForPlayer(int player, string result = null)
- int GetConsumableItemCount(string key)
- void AddConsumableItem(string key, int amount)
- void ReduceConsumableItem(string key, int amount)
- void DisableGameEndDetection(object victoryCallback = null, object defeatCallback = null)
- void EnableGameEndDetection()
- void SetEndgamePause(bool toPause)
Tutorial
- void ShowWorldPositionHelper(float x, float z)
- void HideWorldPositionHelper()
- void BlockGameWorld()
- void WhitelistUnit(unit u)
- void WhitelistWorldPosition(float x, float z, float radius)
- void WhitelistUi(InGameUILayoutComponent ui)
- void UnblockGameWorld()
Sound
- bool IsMusicEnabled()
- bool IsSoundEnabled()
- void SetMasterVolume(float volume)
- float GetMasterVolume()
- void PlayMusic(string name, bool smoothTransition = False)
- void SetMusicVolume(float volume)
- float GetMusicVolume()
- void PauseMusic()
- void ResumeMusic()
- void PlaySound(string nameOrPath, float volume = 1)
- void SetSoundVolume(float volume)
- float GetSoundVolume()
- void PlaySoundForPlayer(string nameOrPath, int playerId, float volume = 1)
Service
- string GetTranslationText(string key, Dictionary<string, object> parameters)
- void SetTranslationText(string key, string text)
- bool IsAdsReady()
- void ShowAds(TypedCallback<bool> callback, bool fallbackToUnityAds = False)
- bool IsOnline()
- bool IsDev()
- bool IsGooglePlayGamesOnPc()
- void GetSaveDataHistory(int count, TypedCallback<object> callback)
- void ResetSavedMapDataByIndex(int index)
- void GetMail(TypedCallback<object> callback, bool forceFetch)
- void DeleteMail(int instanceId)
- void DeleteUserAccount(TypedCallback callback)
- bool AreNotificationsEnabled()
- void OpenNotificationSettings()
- int ScheduleNotification(string title, string body, double timeInSeconds)
- void CancelNotification(int id)
- object GetLastNotificationId()
- void ShowSendSMS(int platform)
- void RestartApplication()
- void QuitApplication()
- void SetResolution(int width, int height, FullScreenMode mode)
- object GetCurrentResolution()
- object GetSupportedResolutions()
- void OpenUrl(string url)
- void ShareText(string text)
- void RequestAppStoreReview()
- void RequestInAppReview(Action successCallback, Action failureCallback)
- void GetServerTime(TypedCallback<int> callback)
- void GetServerData(TypedCallback<object> callback)
- void CallServerFunction(string name, string request, TypedCallback<object> callback)
- string GetRemoteConfigValue(string name)
- string GetUserId()
- string GetUserName()
- string GetUserTag()
- void GetReferralCode(TypedCallback<object> callback)
- void UseReferralCode(string code, TypedCallback<object> callback)
- void GenerateDeepLink(string payload, TypedCallback<string> callback)
- void TriggerAddDeepLinkEvent(TypedCallback<string> callback)
- void WildCastleCreateGuild(string guildName, TypedCallback<object> callback)
- void WildCastleLeaveGuild(TypedCallback<object> callback)
- void WildCastlePullGuild(TypedCallback<object> callback)
- void WildCastleSearchGuild(string guildNameOrTag, TypedCallback<object> callback)
- void WildCastleApplyForGuild(string guildId, TypedCallback<object> callback)
- void WildCastlePullGuildApplicants(TypedCallback<object> callback)
- void WildCastleResponseToJoinGuild(string targetPlayerUuid, bool accept, TypedCallback<object> callback)
- void WildCastleKickOutGuildMember(string targetPlayerUuid, TypedCallback<object> callback)
- void WildCastleUpdateGuildSettings(string announcement, int guildJoinType, TypedCallback<object> callback)
- void WildCastleUpdateGuildBadge(int background, int pattern, int icon, TypedCallback<object> callback)
- void WildCastleUpdatePlayerBadge(int background, int pattern, int icon, TypedCallback<object> callback)
- void WildCastlePostContribution(int contribution, TypedCallback<object> callback)
- void WildCastlePromoteGuildMember(string targetPlayerUuid, TypedCallback<object> callback)
- void WildCastleDemoteGuildMember(string targetPlayerUuid, TypedCallback<object> callback)
- void WildCastleUpdateGuildSkill(string key, int level, TypedCallback<object> callback)
- void WildCastlePullMessages(int limit, TypedCallback<object> callback)
- void WildCastleClaimPuzzleChest(Dictionary<string, int> items, TypedCallback<object> callback)
- void WildCastleSendItemsToPlayer(string targetPlayerUuid, Dictionary<string, int> items, TypedCallback<object> callback)
- void RegisterWildCastleCreateGuildCallback(TypedCallback<object> callback)
- void RegisterWildCastleClaimPuzzleChestCallback(TypedCallback<object> callback)
- void RegisterWildCastleSendItemsToPlayerCallback(TypedCallback<object> callback)
- void StandaloneGetItemInventory(string key, TypedCallback<object> callback)
- void StandaloneGetUserItemInventory(TypedCallback<object> callback)
- void WildCastlePostRequestItemMessage(string key, int value, int limit, TypedCallback<object> callback)
- void WildCastlePostGuildChatMessage(string content, TypedCallback<object> callback)
- void StandalonePostChatMessage(string targetPlayerUuid, string content, TypedCallback<object> callback)
- void StandalonePullChatMessages(string targetPlayerUuid, int limit, TypedCallback<object> callback)
- void StandaloneRegisterOnReceiveMessageCallback(TypedCallback<object> callback)
- void GetLeaderBoardScore(string type, TypedCallback<object> callback)
- void GetLeaderBoardScoreList(string type, int skip, int limit, TypedCallback<object> callback)
- void GetLeaderBoardSurroundingUsers(string type, int count, TypedCallback<object> callback)
- void GetLeaderBoardUserScores(string type, List<string> uuids, TypedCallback<object> callback)
- void InitializeInAppPurchaseWithProductId(TypedCallback<string> purchaseCallback, List<string> productIds, TypedCallback<bool> initializationCallback = default)
- void InitializeInAppPurchaseWithProductData(TypedCallback<string> purchaseCallback, CustomIapProductData customIapProductData, TypedCallback<bool> initializationCallback = default)
- void PurchaseIapProduct(string productId)
- string GetIapProductLocalizedPrice(string productId)
- void PostLeaderBoardScore(string type, double score, string payload, int spentGems, TypedCallback<object> callback)
- void SetUserName(string name, TypedCallback<int> callback)
Actor
- int GetAnimationClipId(string name)
- void SendSetModelScaleActorAction(unit unit, SetModelScaleActorAction action, string targetActorName = null)
- void SendCreateActorAction(unit unit, CreateActorAction action, string targetActorName = null)
- void SendDestroyActorAction(unit unit, DestroyActorAction action, string targetActorName = null)
- void SendSendCustomEventActorAction(unit unit, SendCustomEventActorAction action, string targetActorName = null)
- void SendPlayAnimationActorAction(unit unit, PlayAnimationActorAction action, string targetActorName = null)
- void SendPauseAnimationActorAction(unit unit, PauseAnimationActorAction action, string targetActorName = null)
- void SendSetVisibilityActorAction(unit unit, SetVisibilityActorAction action, string targetActorName = null)
- void SendSetTintColorActorAction(unit unit, SetTintColorActorAction action, string targetActorName = null)
- void SetVfxPriorityLevel(int level)
- void UseAlternativeActorResource(string actor)
Terrain
- void EnableRoute(string routeName, bool enable)
- Float2 GetMapSize()
- Float2 GetMapCenterPoint()
- int GetTerrainTypeAtPoint(float x, float z)
- float GetTerrainHeightAtPoint(float x, float z)
- void ChangePropLayerDisplay(string layerName, bool display)
- void LoadPropLayer(string layerName, bool initialDisplay)
- void UnloadPropLayer(string layerName)
- bool GetPropLayerLoadStatus(string layerName)
- Float3 GetTerrainChunkPosition(string chunkName)
- bool SetTerrainChunkPosition(string chunkName, Float3 pos)
- bool SetTerrainChunkPositionWithInterpolation(string chunkName, Float3 pos, float duration)
- int InstantiateTerrainChunk(string chunkName, Float3 pos)
- void DestroyTerrainChunkInstance(int instanceId)
- Float3 GetTerrainChunkInstancePosition(int instanceId)
- bool SetTerrainChunkInstancePosition(int instanceId, Float3 pos)
- bool SetTerrainChunkInstancePositionWithInterpolation(int instanceId, Float3 pos, float duration)
- int GetWeather()
- void SetWeather(int weatherStatus, float duration = 4)
- int GetTimeOfTheDay()
- void SetTimeOfTheDay(int timeOfTheDay, float duration = 4)
- ColorRGB GetCurrentLightColor()
- void SetOverrideLightColor(ColorRGB color, float duration)
- void SetSkyboxColor(ColorRGB color, float duration)
- void ResetSkyboxColor(float duration)
- int AddLine(Float3 startPos, Float3 endPos, float width, ColorRGBA color, bool rectCap = False)
- int AddLineWithSprite(Float3 startPos, Float3 endPos, float width, ColorRGBA color, string spriteName, float tex_multiplier = 1)
- void RemoveLine(int lineId)
- void MoveLineWithInterpolation(int lineId, Float3 startPos, Float3 endPos, float duration)
- void RemoveAllLines()
- void ChangeLineColor(int lineId, ColorRGBA color)
- void ChangeLineDisplay(int lineId, bool display)
- int AddGrid(Float3 center, float width, float height, int xCount, int zCount, float lineWidth, ColorRGBA color, bool rectCap = False)
- int AddGridWithSprite(Float3 center, float width, float height, int xCount, int zCount, float lineWidth, ColorRGBA color, string spriteName, float tex_multiplier = 1)
- void RemoveGrid(int gridId)
- void SetBlurredScreenCaptureAsBackground(bool set, float duration)
Lighting
- void SetCustomLightColor(string name, ColorRGB color, float duration)
- void SetCustomLightIntensity(string name, float intensity, float duration)
- void SetCustomLightPosition(string name, Float3 position, float duration)
- ColorRGB GetCustomLightColor(string name)
Save
- void Save.Set(string key, object value)
- object Save.Get(string key)
- void Save.Commit()
- void Save.SetMapEntry(string entry)
- void Save.SetLockSaveData(bool set)
- bool Save.GetLockSaveDataStatus()
- object Save.GetAllKeys()
- object Save.GetCurrentSaveData()
DevSave
- void DevSave.SetSaveData(string key, Dictionary<string, object> saveData)
- object DevSave.GetAllKeys()
- object DevSave.GetSaveData(string key)
- void DevSave.Commit()
Event
- void Event.Log(string key, object table)
- void Event.SetUserProperty(string key, object value)
- void Event.SetGameState(string state)
Settings
- void Settings.SetSelectedLanguage(string language)
- string Settings.GetSelectedLanguage()
- string Settings.GetDisplayLanguage()
- void Settings.GetSaveDataHistory(int count, TypedCallback<object> callback)
- void Settings.RestoreSaveDataByIndex(int index)
- void Settings.UploadSaveData(TypedCallback<object> callback)
- void Settings.TriggerAddSaveDataBackupStatusChangeEvent(TypedCallback<int> callback)
- int Settings.GetResolutionLevel()
- void Settings.SetResolutionLevel(int level)
- bool Settings.IsDynamicShadowEnabled()
- void Settings.SetDynamicShadowEnabled(bool enable)
- bool Settings.IsFps30()
- void Settings.SetFps30Enabled(bool enable)
- bool Settings.IsFacebookConnected()
- void Settings.ConnectFacebook(TypedCallback<object> callback)
- void Settings.DisconnectFacebook(TypedCallback<object> callback)
- void Settings.RestoreAccountByFacebook(TypedCallback<object> callback)
- bool Settings.IsGoogleConnected()
- void Settings.ConnectGoogle(TypedCallback<object> callback)
- void Settings.DisconnectGoogle(TypedCallback<object> callback)
- void Settings.RestoreAccountByGoogle(TypedCallback<object> callback)
- bool Settings.IsAppleConnected()
- void Settings.ConnectApple(TypedCallback<object> callback)
- void Settings.DisconnectApple(TypedCallback<object> callback)
- void Settings.RestoreAccountByApple(TypedCallback<object> callback)
- void Settings.SendSupportEmail(string subject, string content)
Video
- bool Video.StartRecording(string filename)
- void Video.CancelRecording()
- void Video.StopRecording()
- void Video.ViewRecording()
- void Video.ShareRecording(string text)
AsyncPvp
- void AsyncPvp.GetCurrentSeasonInfo(TypedCallback<object> callback)
- void AsyncPvp.GetCurrentUserInfo(string season, TypedCallback<object> callback)
- void AsyncPvp.SetDefenseBoard(string season, string board, TypedCallback<object> callback)
- void AsyncPvp.GetDefenseHistory(string season, TypedCallback<object> callback)
- void AsyncPvp.SetDefenseProtectionTime(string season, int timestamp, TypedCallback<object> callback)
- void AsyncPvp.NewSession(string season, TypedCallback<object> callback)
- void AsyncPvp.NewSession(string season, int relativeRankMin, int relativeRankMax, TypedCallback<object> callback)
- void AsyncPvp.SwitchOpponent(string session, TypedCallback<object> callback)
- void AsyncPvp.SwitchOpponent(string session, int relativeRankMin, int relativeRankMax, TypedCallback<object> callback)
- void AsyncPvp.FinishOpponent(string session, int result, string payload, TypedCallback<object> callback)
- void AsyncPvp.FinishOpponent(string session, int result, TypedCallback<object> callback)
- void AsyncPvp.UseBotOpponent(string session, AsyncPvpBot bot, TypedCallback<object> callback)
- void AsyncPvp.FinishSession(string session, TypedCallback<object> callback)
- void AsyncPvp.GetLeaderBoard(string season, string type, TypedCallback<object> callback)
- void AsyncPvp.GetSurroundingPlayers(string season, TypedCallback<object> callback)
- void AsyncPvp.GetDailyRankHistory(string season, TypedCallback<object> callback)
Steam
- void Steam.UnlockAchievement(string achievementId)
- bool Steam.IsAchievementUnlocked(string achievementId)
- void Steam.SetStatInt(string statId, int data)
- void Steam.SetStatFloat(string statId, float data)
- int Steam.GetStatInt(string statId)
- float Steam.GetStatFloat(string statId)
- string Steam.GetId()
- string Steam.GetAvatar(string steamId, int level = 2)
- string Steam.GetName(string steamId)
- void Steam.RequestUserInfo(string steamId, bool nameOnly, TypedCallback callback)
- string Wechat.GetUserProvince()
- void Wechat.UpdateShareData(string title, string imageUrl)
- void Wechat.ShareAppMessage(string title, string imageUrl)
- void Wechat.SetFriendLeaderboardScore(float score)
- InGameUILayoutComponent Wechat.CreateFriendLeaderboardFrame(InGameUILayoutComponent parent)
PartyEvent
- void PartyEvent.GetEvent(TypedCallback callback)
- void PartyEvent.PostScore(string eventId, double score, TypedCallback callback)
- void PartyEvent.GetLeaderboard(string eventId, TypedCallback callback)
- void PartyEvent.LikePlayer(string eventId, string likedUuid, TypedCallback callback)
- void PartyEvent.PostNotification(string eventId, string payload, TypedCallback callback)
- void PartyEvent.GetNotifications(string eventId, int lastNotificationId, TypedCallback callback)
DCEI Trigger Events
Event
Unit
- TriggerHandle TriggerAddUnitSelectedEvent(unit unit, TypedCallback trigger)
- TriggerHandle TriggerAddUnitDeselectedEvent(unit unit, TypedCallback trigger)
- TriggerHandle TriggerAddUnitDamageEvent(unit unit, TypedCallback<float, unit> trigger, CriticalFilter filter = default)
- TriggerHandle TriggerAddUnitCriticalDamageEvent(unit unit, TypedCallback<float, unit> trigger)
- TriggerHandle TriggerAddUnitHealEvent(unit unit, TypedCallback<float, unit> trigger)
- TriggerHandle TriggerAddUnitSpawnEvent(unit unit, TypedCallback trigger, bool simple = False)
- TriggerHandle TriggerAddUnitDiedEvent(unit unit, TypedCallback<unit> trigger, bool simple = False)
- TriggerHandle TriggerAddUnitMoveCommandEvent(unit unit, TypedCallback<Float2> trigger)
- TriggerHandle TriggerAddOnUnitIdleEvent(unit unit, TypedCallback trigger)
- TriggerHandle TriggerAddUnitRemovedEvent(unit unit, TypedCallback trigger, bool simple = False)
Timer
- TriggerHandle TriggerAddTimerEventElapsed(TypedCallback trigger, float time, bool useRealTime = False, bool simple = False)
- TriggerHandle OnMapStart(TypedCallback trigger)
- TriggerHandle TriggerAddTimerEventPeriodic(TypedCallback trigger, float period, int lifeCount, bool useRealTime = False, bool simple = False)
- TriggerHandle TriggerAddTimerEventPeriodicIndefinite(TypedCallback trigger, float period, bool useRealTime = False, bool simple = False)
Ability
- TriggerHandle TriggerAddCastAbilityEvent(unit unit, TypedCallback<unit, Float2> trigger, bool simple = False, AbilityFilter filter = default)
- TriggerHandle TriggerAddUseAbilityEvent(unit unit, TypedCallback<unit, Float2> trigger, bool simple = False, AbilityFilter filter = default)
- TriggerHandle TriggerAddActivateAbilityEvent(unit unit, TypedCallback trigger, bool simple = False, AbilityFilter filter = default)
- TriggerHandle TriggerAddUnitAbilityOnOffEvent(unit unit, TypedCallback<bool> trigger, bool simple = False, AbilityFilter filter = default)
- TriggerHandle TriggerAddUnitAbilityOnEvent(unit unit, TypedCallback<bool> trigger, bool simple = False, AbilityFilter filter = default)
- TriggerHandle TriggerAddUnitAbilityOffEvent(unit unit, TypedCallback<bool> trigger, bool simple = False, AbilityFilter filter = default)
- TriggerHandle TriggerAddDeactivateAbilityEvent(unit unit, TypedCallback trigger, bool simple = False, AbilityFilter filter = default)
- void TriggerRemoveDeactivateAbilityEvent(TriggerHandle handle)
Input
- void TriggerAddMouseDownEvent(int mouseButtonId, TypedCallback<Float2, unit> trigger)
- void TriggerAddMouseUpEvent(int mouseButtonId, TypedCallback<Float2, unit> trigger)
- void TriggerAddSwipeTouchDownEvent(TypedCallback<Float2> trigger)
- void TriggerAddSwipeTouchUpEvent(TypedCallback<Float2> trigger)
- int RegisterControllerMap(int playerId, int categoryId, int layoutId, ControllerMapEntry controllerMap)
- void RegisterControllerMapMode(string tag, int categoryId1, int layoutId1, int categoryId2 = -1, int layoutId2 = -1, int categoryId3 = -1, int layoutId3 = -1)
- void ActivateControllerMapMode(string tag)
- void SetUiNavigationExplicit(InGameUILayoutComponent ui, InGameUILayoutComponent up, InGameUILayoutComponent down, InGameUILayoutComponent left, InGameUILayoutComponent right)
- void SetUiControllerInputActionTrigger(InGameUILayoutComponent ui, int actionId)
- void TriggerAddInputActionEvent(TypedCallback trigger, int actionId)
- void TriggerAddTouchDownEvent(TypedCallback<Float2, unit> trigger)
- void TriggerAddTouchUpEvent(TypedCallback<Float2, unit> trigger)
- void TriggerAddJoystickEvent(TypedCallback trigger)
- void TriggerAddJoystickEventWithJoystickOptions(TypedCallback trigger, JoystickOptions options)
- void TriggerAddJoystickTapEvent(TypedCallback trigger, int joystickId, float validDuration, float validRadius)
- void TriggerAddJoystickSwipeEvent(TypedCallback trigger, int joystickId, float validDuration)
- void TriggerAddJoystickReleaseEvent(TypedCallback trigger)
- void TriggerAddJoystickReleaseEventWithId(TypedCallback trigger, int joystickId)
- void TriggerAddTextCommandEvent(TypedCallback<string> trigger)
- void TriggerAddMappedKeyDownEvent(string keyEventName, TypedCallback<string> trigger)
- void TriggerAddMappedKeyUpEvent(string keyEventName, TypedCallback<string> trigger)
- TriggerHandle TriggerAddOnMouseWorldPositionTrackingEvent(TypedCallback<int, Float2> trigger)
- void StartMouseTracking(int playerId)
- void StopMouseTracking(int playerId)
- void SetBackButton(TypedCallback callback)
- void SetOnMouseEnterCallback(InGameUILayoutComponent ui, TypedCallback trigger)
- void SetOnMouseExitCallback(InGameUILayoutComponent ui, TypedCallback trigger)
- void SetOnDownCallback(InGameUILayoutComponent ui, object callback)
- void SetOnUpCallback(InGameUILayoutComponent ui, object callback)
- void SetOnClickCallback(InGameUILayoutComponent ui, object callback)
- void SetTextLinkOnClickCallback(InGameUILayoutComponent ui, string linkId, object callback)
- void SetOnClickOutsideCallback(InGameUILayoutComponent ui, object callback)
- void SetPauseMenuCallback(TypedCallback<bool> callback)
Tower Defense
Weapon
Behavior
- TriggerHandle TriggerAddBehaviorStackIncreaseEvent(unit unit, TypedCallback<EffectContext, int> trigger, bool simple = False, BehaviorFilter filter = default)
- TriggerHandle TriggerAddBehaviorStackDecreaseEvent(unit unit, TypedCallback<EffectContext, int> trigger, bool simple = False, BehaviorFilter filter = default)
- TriggerHandle TriggerAddBehaviorAddEvent(unit unit, TypedCallback<EffectContext> trigger, bool simple = False, BehaviorFilter filter = default)
- TriggerHandle TriggerAddBehaviorExpireEvent(unit unit, TypedCallback trigger, bool simple = False, BehaviorFilter filter = default)
- TriggerHandle TriggerAddBehaviorDisabledEvent(unit unit, TypedCallback trigger, bool simple = False, BehaviorFilter filter = default)
- TriggerHandle TriggerAddBehaviorEnabledEvent(unit unit, TypedCallback trigger, bool simple = False, BehaviorFilter filter = default)
- TriggerHandle TriggerAddBehaviorRemoveEvent(unit unit, TypedCallback trigger, bool simple = False, BehaviorFilter filter = default)
Effect
- void TriggerAddEffectEvent(string effectName, TypedCallback<EffectContext> trigger, bool simple = False)
- void TriggerAddEffectHookEvent(string effectName, TypedCallback<EffectContext> trigger, bool simple = False)
Player
Region
- RegionUnitTriggerHandle TriggerAddUnitEnterRegionEvent(unit unit, Region region, TypedCallback trigger)
- RegionUnitTriggerHandle TriggerAddUnitLeaveRegionEvent(unit unit, Region region, TypedCallback trigger)
Custom UI
- InGameUILayoutComponent CreateSliderFrame(InGameUILayoutComponent parent)
- void SetOnSliderValueChangeCallback(InGameUILayoutComponent ui, TypedCallback<float> callback)
- void SetSliderFrameBackgroundImage(InGameUILayoutComponent ui, string name)
- void SetSliderFrameFillImage(InGameUILayoutComponent ui, string name)
- void SetSliderFrameHandleImage(InGameUILayoutComponent ui, string name)
- void SetSliderFrameHandleRadius(InGameUILayoutComponent ui, float value)
- void ShowSliderFrameHandle(InGameUILayoutComponent ui, bool show)
- void SetSliderFrameValue(InGameUILayoutComponent ui, float value)
- float GetSliderFrameValue(InGameUILayoutComponent ui)
DCEI Trigger Variables
Service
Unit
Effect
Ability
Weapon
Behavior
Region
Input
- TriggeringJoystickAxes
- TriggeringJoystickId
- TriggeringJoystickButtonId
- TriggeringJoystickButtonEventType
Player
DCEI Trigger Types
- YogaFlexDirection
- YogaWrap
- YogaJustify
- YogaAlign
- YogaPositionType
- FullScreenMode
- UnitBehaviorStatus
- BehaviorFilter
- AbilityFilter
- WeaponFilter
- CriticalFilter
- UnitTagStatus
- UnitFilter
- Unit
- Region
- Float2
- AbilityCost
- BehaviorModifier
- Damage
- Float3
- EffectContext
- UnitLabelOptions
- Offset
- TextOptions
- ExplicitOffset
- PolarOffset
- SimpleUnitMeta
- SimpleUnitArmorOptions
- SimpleUnitMoverOptions
- SimpleUnitLocalAvoidanceOptions
- SimpleUnitTimerOptions
- SimpleLootOptions
- SimpleUnitTransformAnimationOptions
- SimpleUnitTintColorAnimationOptions
- SimpleUnitAnimationOptions
- SimpleUnitShadowOptions
- SimpleUnitCollisionEffect
- SimpleUnitCastEffectOptions
- SimpleUnitAnimatorOptions
- SimpleParticleSpawnOptions
- SimpleUnitTypeOptions
- SimpleUnitInstanceOptions
- SimpleDamageNumberStyleOptions
- SimpleDamageAffinityEntry
- SimpleDamageAffinityOptions
- ControllerMapEntry
- SimpleUnitMapBoundOptions
- SimpleUnitMovementOptions
- CollisionOptions
- CollisionMovementSpeedModifierApplierOptions
- CollisionDamageApplierOptions
- CollisionForceApplierOptions
- CollisionStatsApplierOptions
- SimpleHealthOptions
- SimpleTagOptions
- AttachOffsetOptions
- ColorRGBA
- ColorRGB
- WaypointOptions
- ScreenBackgroundOptions
- AreaOffset
- JoystickOptions
- JoystickButtonOptions
- BigHeadMessageOptions
- SpawnGroupUnit
- SetModelScaleActorAction
- CreateActorAction
- DestroyActorAction
- SendCustomEventActorAction
- PlayAnimationActorAction
- PauseAnimationActorAction
- SetVisibilityActorAction
- SetTintColorActorAction
- AsyncPvpBot
- Ease
- LoopType
Contributing
See more information here.