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

◆ SetItemWithPhysics()

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

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

2141 {
2142 CfgParam param = GetItemParam( preset_name, item_index, SUB_PARAM_ITEM_WITH_PHYSICS );
2143
2144 if ( param != NULL )
2145 {
2146 CfgParamBool param_bool = CfgParamBool.Cast( param );
2147 param_bool.SetValue( with_physics );
2148 }
2149 else
2150 {
2151 array<ref CfgParam> item_params = GetItemParams( preset_name, item_index );
2152
2153 if ( item_params != NULL )
2154 {
2155 CfgParamBool new_param = new CfgParamBool( SUB_PARAM_ITEM_WITH_PHYSICS );
2156 new_param.SetValue( with_physics );
2157 item_params.Insert( new_param );
2158 }
2159 }
2160
2161 SaveConfigToFile();
2162
2163 return true;
2164 }
array< ref CfgParam > GetItemParams(string preset_name, int item_index)
Определения PluginConfigDebugProfile.c:2001
CfgParam GetItemParam(string preset_name, int item_index, string param_name)
Определения PluginConfigDebugProfile.c:2022
const string SUB_PARAM_ITEM_WITH_PHYSICS
Определения PluginConfigDebugProfile.c:76

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