RapidGameFramework
Reusable Godot managers for data-driven small games
Loading...
Searching...
No Matches
action_effect_manager Namespace Reference

Variables

 DataCacheManager
 
 data_cache_manager
 
 action
 Load action definitions from a JSON file containing actions: [].
 
 id
 
 normalized
 Normalize one action dictionary into the framework shape.
 
 pool
 Return true when an actor/resource dictionary can pay every action cost.
 
 amount
 
 next
 Subtract action costs from a duplicated pool dictionary.
 
 Dictionary
 Return whether an action id is currently cooling down.
 
 action_id
 
 cooldown
 
 remaining
 
 type
 
 callback
 
 resolved
 
 availability
 
 next_pools
 
 next_cooldowns
 
 costs
 
 effects
 
 effect
 

Variable Documentation

◆ action

action_effect_manager.action

Load action definitions from a JSON file containing actions: [].

Load action definitions from parsed action catalog data.

Definition at line 28 of file action_effect_manager.gd.

◆ action_id

action_effect_manager.action_id

Definition at line 91 of file action_effect_manager.gd.

◆ amount

action_effect_manager.amount

Definition at line 64 of file action_effect_manager.gd.

◆ availability

action_effect_manager.availability

Definition at line 145 of file action_effect_manager.gd.

◆ callback

action_effect_manager.callback

Definition at line 130 of file action_effect_manager.gd.

◆ cooldown

action_effect_manager.cooldown

Definition at line 103 of file action_effect_manager.gd.

◆ costs

action_effect_manager.costs

Definition at line 168 of file action_effect_manager.gd.

◆ data_cache_manager

action_effect_manager.data_cache_manager

Definition at line 14 of file action_effect_manager.gd.

◆ DataCacheManager

action_effect_manager.DataCacheManager

Definition at line 11 of file action_effect_manager.gd.

◆ Dictionary

action_effect_manager.Dictionary

Return whether an action id is currently cooling down.

Spend costs, begin cooldown, and resolve effects in one save-friendly bundle.

Resolve generic action effects.

Start an action cooldown in a duplicated cooldown dictionary.

Check both cost and cooldown availability.

context can include optional callbacks by effect type:

  • damage, heal, resource, currency, status, spawn, custom Each callback receives the normalized effect dictionary and should return a dictionary describing the result. Without a callback, the effect is reported as unhandled so games can log/inspect missing integrations.

Definition at line 90 of file action_effect_manager.gd.

◆ effect

action_effect_manager.effect

Definition at line 184 of file action_effect_manager.gd.

◆ effects

action_effect_manager.effects

Definition at line 180 of file action_effect_manager.gd.

◆ id

action_effect_manager.id

Definition at line 29 of file action_effect_manager.gd.

◆ next

action_effect_manager.next

Subtract action costs from a duplicated pool dictionary.

Definition at line 74 of file action_effect_manager.gd.

◆ next_cooldowns

action_effect_manager.next_cooldowns

Definition at line 155 of file action_effect_manager.gd.

◆ next_pools

action_effect_manager.next_pools

Definition at line 154 of file action_effect_manager.gd.

◆ normalized

action_effect_manager.normalized

Normalize one action dictionary into the framework shape.

Definition at line 49 of file action_effect_manager.gd.

◆ pool

action_effect_manager.pool

Return true when an actor/resource dictionary can pay every action cost.

Definition at line 63 of file action_effect_manager.gd.

◆ remaining

action_effect_manager.remaining

Definition at line 113 of file action_effect_manager.gd.

◆ resolved

action_effect_manager.resolved

Definition at line 132 of file action_effect_manager.gd.

◆ type

action_effect_manager.type

Definition at line 129 of file action_effect_manager.gd.