DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SetItemWithPhysics()

bool PluginConfigHandler::SetItemWithPhysics ( string preset_name,
int item_index,
bool with_physics )
inlineprotected

См. определение в файле PluginConfigDebugProfile.c строка 2200

2201 {
2202 CfgParam param = GetItemParam( preset_name, item_index, SUB_PARAM_ITEM_WITH_PHYSICS );
2203
2204 if ( param != NULL )
2205 {
2206 CfgParamBool param_bool = CfgParamBool.Cast( param );
2207 param_bool.SetValue( with_physics );
2208 }
2209 else
2210 {
2211 array<ref CfgParam> item_params = GetItemParams( preset_name, item_index );
2212
2213 if ( item_params != NULL )
2214 {
2215 CfgParamBool new_param = new CfgParamBool( SUB_PARAM_ITEM_WITH_PHYSICS );
2216 new_param.SetValue( with_physics );
2217 item_params.Insert( new_param );
2218 }
2219 }
2220
2221 SaveConfigToFile();
2222
2223 return true;
2224 }
array< ref CfgParam > GetItemParams(string preset_name, int item_index)
Определения PluginConfigDebugProfile.c:2061
CfgParam GetItemParam(string preset_name, int item_index, string param_name)
Определения PluginConfigDebugProfile.c:2082
const string SUB_PARAM_ITEM_WITH_PHYSICS
Определения PluginConfigDebugProfile.c:55

Перекрестные ссылки GetItemParam(), GetItemParams() и SUB_PARAM_ITEM_WITH_PHYSICS.