@@ -81,6 +81,43 @@ static const auto EFFECT_DEFS = datastructure::create_const_map<effect_t, nyan::
8181 std::pair(effect_t ::DISCRETE_SEND_TO_CONTAINER,
8282 nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.effect.discrete.type.SendToContainer" ))));
8383
84+ /* *
85+ * Maps internal effect types to nyan API values.
86+ */
87+ static const auto RESISTANCE_DEFS = datastructure::create_const_map<effect_t , nyan::ValueHolder>(
88+ std::pair (effect_t ::CONTINUOUS_FLAC_DECREASE,
89+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(
90+ " engine.resistance.type.ContinuousFlatAttributeChangeDecrease" ))),
91+ std::pair(effect_t ::CONTINUOUS_FLAC_INCREASE,
92+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(
93+ " engine.resistance.type.ContinuousFlatAttributeChangeIncrease" ))),
94+ std::pair(effect_t ::CONTINUOUS_LURE,
95+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.resistance.type.Lure" ))),
96+ std::pair(effect_t ::CONTINUOUS_TRAC_DECREASE,
97+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(
98+ " engine.resistance.type.ContinuousTimeRelativeAttributeChangeDecrease" ))),
99+ std::pair(effect_t ::CONTINUOUS_TRAC_INCREASE,
100+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(
101+ " engine.resistance.type.ContinuousTimeRelativeAttributeChangeIncrease" ))),
102+ std::pair(effect_t ::CONTINUOUS_TRPC_DECREASE,
103+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(
104+ " engine.resistance.type.ContinuousTimeRelativeProgressChangeDecrease" ))),
105+ std::pair(effect_t ::CONTINUOUS_TRPC_INCREASE,
106+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(
107+ " engine.resistance.type.ContinuousTimeRelativeProgressChangeIncrease" ))),
108+ std::pair(effect_t ::DISCRETE_CONVERT,
109+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.resistance.type.Convert" ))),
110+ std::pair(effect_t ::DISCRETE_FLAC_DECREASE,
111+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(
112+ " engine.resistance.type.DiscreteFlatAttributeChangeDecrease" ))),
113+ std::pair(effect_t ::DISCRETE_FLAC_INCREASE,
114+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(
115+ " engine.resistance.type.DiscreteFlatAttributeChangeIncrease" ))),
116+ std::pair(effect_t ::DISCRETE_MAKE_HARVESTABLE,
117+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.resistance.type.MakeHarvestable" ))),
118+ std::pair(effect_t ::DISCRETE_SEND_TO_CONTAINER,
119+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.resistance.type.SendToContainer" ))));
120+
84121/* *
85122 * Maps API effect types to internal effect types.
86123 */
@@ -110,6 +147,35 @@ static const auto EFFECT_TYPE_LOOKUP = datastructure::create_const_map<nyan::fqo
110147 std::pair(" engine.effect.discrete.type.SendToContainer" ,
111148 effect_t ::DISCRETE_SEND_TO_CONTAINER));
112149
150+ /* *
151+ * Maps API resistance types to internal effect types.
152+ */
153+ static const auto RESISTANCE_TYPE_LOOKUP = datastructure::create_const_map<nyan::fqon_t , effect_t >(
154+ std::pair (" engine.resistance.type.ContinuousFlatAttributeChangeDecrease" ,
155+ effect_t ::CONTINUOUS_FLAC_DECREASE),
156+ std::pair(" engine.resistance.type.ContinuousFlatAttributeChangeIncrease" ,
157+ effect_t ::CONTINUOUS_FLAC_INCREASE),
158+ std::pair(" engine.resistance.type.Lure" ,
159+ effect_t ::CONTINUOUS_LURE),
160+ std::pair(" engine.resistance.type.ContinuousTimeRelativeAttributeChangeDecrease" ,
161+ effect_t ::CONTINUOUS_TRAC_DECREASE),
162+ std::pair(" engine.resistance.type.ContinuousTimeRelativeAttributeChangeIncrease" ,
163+ effect_t ::CONTINUOUS_TRAC_INCREASE),
164+ std::pair(" engine.resistance.type.ContinuousTimeRelativeProgressChangeDecrease" ,
165+ effect_t ::CONTINUOUS_TRPC_DECREASE),
166+ std::pair(" engine.resistance.type.ContinuousTimeRelativeProgressChangeIncrease" ,
167+ effect_t ::CONTINUOUS_TRPC_INCREASE),
168+ std::pair(" engine.resistance.type.Convert" ,
169+ effect_t ::DISCRETE_CONVERT),
170+ std::pair(" engine.resistance.type.DiscreteFlatAttributeChangeDecrease" ,
171+ effect_t ::DISCRETE_FLAC_DECREASE),
172+ std::pair(" engine.resistance.type.DiscreteFlatAttributeChangeIncrease" ,
173+ effect_t ::DISCRETE_FLAC_INCREASE),
174+ std::pair(" engine.resistance.type.MakeHarvestable" ,
175+ effect_t ::DISCRETE_MAKE_HARVESTABLE),
176+ std::pair(" engine.resistance.type.SendToContainer" ,
177+ effect_t ::DISCRETE_SEND_TO_CONTAINER));
178+
113179
114180/* *
115181 * Maps internal ability property types to nyan API values.
@@ -141,6 +207,15 @@ static const auto EFFECT_PROPERTY_DEFS = datastructure::create_const_map<effect_
141207 std::pair(effect_property_t ::PRIORITY,
142208 nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.effect.property.type.Priority" ))));
143209
210+ /* *
211+ * Maps internal resistance property types to nyan API values.
212+ */
213+ static const auto RESISTANCE_PROPERTY_DEFS = datastructure::create_const_map<resistance_property_t , nyan::ValueHolder>(
214+ std::pair (resistance_property_t ::COST,
215+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.resistance.property.type.Cost" ))),
216+ std::pair(resistance_property_t ::STACKED,
217+ nyan::ValueHolder (std::make_shared<nyan::ObjectValue>(" engine.resistance.property.type.Stacked" ))));
218+
144219/* *
145220 * Maps API activity node types to engine node types.
146221 */
0 commit comments