@@ -25,26 +25,30 @@ namespace openage::gamestate::api {
2525 * Maps internal ability types to nyan API values.
2626 */
2727static const auto ABILITY_DEFS = datastructure::create_const_map<ability_t , nyan::ValueHolder>(
28+ std::pair (ability_t ::ACTIVITY,
29+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Activity" ))),
2830 std::pair(ability_t ::APPLY_CONTINUOUS_EFFECT,
2931 nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.ApplyContinuousEffect" ))),
3032 std::pair(ability_t ::APPLY_DISCRETE_EFFECT,
3133 nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.ApplyDiscreteEffect" ))),
32- std::pair(ability_t ::RANGED_CONTINUOUS_EFFECT,
33- nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.RangedContinuousEffect" ))),
34- std::pair(ability_t ::RANGED_DISCRETE_EFFECT,
35- nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.RangedDiscreteEffect" ))),
36- std::pair(ability_t ::RESISTANCE,
37- nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Resistance" ))),
3834 std::pair(ability_t ::IDLE,
3935 nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Idle" ))),
4036 std::pair(ability_t ::MOVE,
4137 nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Move" ))),
38+ std::pair(ability_t ::LINE_OF_SIGHT,
39+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.LineOfSight" ))),
4240 std::pair(ability_t ::LIVE,
4341 nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Live" ))),
42+ std::pair(ability_t ::RANGED_CONTINUOUS_EFFECT,
43+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.RangedContinuousEffect" ))),
44+ std::pair(ability_t ::RANGED_DISCRETE_EFFECT,
45+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.RangedDiscreteEffect" ))),
46+ std::pair(ability_t ::RESISTANCE,
47+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Resistance" ))),
48+ std::pair(ability_t ::SELECTABLE,
49+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Selectable" ))),
4450 std::pair(ability_t ::TURN,
45- nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Turn" ))),
46- std::pair(ability_t ::LINE_OF_SIGHT,
47- nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.LineOfSight" ))));
51+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.ability.type.Turn" ))));
4852
4953/* *
5054 * Maps internal effect types to nyan API values.
0 commit comments