|
RapidGameFramework
Reusable Godot managers for data-driven small games
|
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 | |
| 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_effect_manager.action_id |
Definition at line 91 of file action_effect_manager.gd.
| action_effect_manager.amount |
Definition at line 64 of file action_effect_manager.gd.
| action_effect_manager.availability |
Definition at line 145 of file action_effect_manager.gd.
| action_effect_manager.callback |
Definition at line 130 of file action_effect_manager.gd.
| action_effect_manager.cooldown |
Definition at line 103 of file action_effect_manager.gd.
| action_effect_manager.costs |
Definition at line 168 of file action_effect_manager.gd.
| action_effect_manager.data_cache_manager |
Definition at line 14 of file action_effect_manager.gd.
| action_effect_manager.DataCacheManager |
Definition at line 11 of file action_effect_manager.gd.
| 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.
| action_effect_manager.effect |
Definition at line 184 of file action_effect_manager.gd.
| action_effect_manager.effects |
Definition at line 180 of file action_effect_manager.gd.
| action_effect_manager.id |
Definition at line 29 of file action_effect_manager.gd.
| action_effect_manager.next |
Subtract action costs from a duplicated pool dictionary.
Definition at line 74 of file action_effect_manager.gd.
| action_effect_manager.next_cooldowns |
Definition at line 155 of file action_effect_manager.gd.
| action_effect_manager.next_pools |
Definition at line 154 of file action_effect_manager.gd.
| action_effect_manager.normalized |
Normalize one action dictionary into the framework shape.
Definition at line 49 of file action_effect_manager.gd.
| 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.
| action_effect_manager.remaining |
Definition at line 113 of file action_effect_manager.gd.
| action_effect_manager.resolved |
Definition at line 132 of file action_effect_manager.gd.
| action_effect_manager.type |
Definition at line 129 of file action_effect_manager.gd.