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

◆ SetItemWithPhysics()

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

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

2158 {
2159 CfgParam param = GetItemParam( preset_name, item_index, SUB_PARAM_ITEM_WITH_PHYSICS );
2160
2161 if ( param != NULL )
2162 {
2163 CfgParamBool param_bool = CfgParamBool.Cast( param );
2164 param_bool.SetValue( with_physics );
2165 }
2166 else
2167 {
2168 array<ref CfgParam> item_params = GetItemParams( preset_name, item_index );
2169
2170 if ( item_params != NULL )
2171 {
2172 CfgParamBool new_param = new CfgParamBool( SUB_PARAM_ITEM_WITH_PHYSICS );
2173 new_param.SetValue( with_physics );
2174 item_params.Insert( new_param );
2175 }
2176 }
2177
2178 SaveConfigToFile();
2179
2180 return true;
2181 }
array< ref CfgParam > GetItemParams(string preset_name, int item_index)
Определения PluginConfigDebugProfile.c:2018
CfgParam GetItemParam(string preset_name, int item_index, string param_name)
Определения PluginConfigDebugProfile.c:2039
const string SUB_PARAM_ITEM_WITH_PHYSICS
Определения PluginConfigDebugProfile.c:52

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