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

◆ SetReplacementTypes()

void CarWheelType::SetReplacementTypes ( )
inlineprotected

См. определение в файле 4_World/DayZ/Entities/Core/Inherited/InventoryItemType.c строка 17

18 {
19 string name = GetName();
20 if (GetExcludedReplacementTypes().Find(name) == -1)
21 {
22 if (name.Contains("_Ruined"))
23 {
25 name.Replace("_Ruined", "");
27 }
28 else
29 {
31 m_RuinedType = name + "_Ruined";
32 }
33
34 if (!g_Game.ConfigIsExisting(CFG_VEHICLESPATH + " " + m_RuinedType))
35 {
36 ErrorEx("No config class entry for wheel entity '" + m_RuinedType + "'.", ErrorExSeverity.ERROR);
37 m_RuinedType = "";
38 }
39
40 if (!g_Game.ConfigIsExisting(CFG_VEHICLESPATH + " " + m_NormalType))
41 {
42 ErrorEx("No config class entry for wheel entity '" + m_NormalType + "'.", ErrorExSeverity.ERROR);
43 m_NormalType = "";
44 }
45 }
46 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DayZGame g_Game
Определения DayZGame.c:4074
TStringArray GetExcludedReplacementTypes()
Note: As each scripted base class creates a CarWheelType instance of itself we want to skip these whe...
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx
const string CFG_VEHICLESPATH
Определения 3_Game/DayZ/constants.c:228
proto native owned string GetName()
Test name getter. Strictly for UI porposes!
Определения SyncedValue.c:119

Перекрестные ссылки CFG_VEHICLESPATH, ErrorEx, g_Game, GetExcludedReplacementTypes(), GetName(), m_NormalType, m_RuinedType и name.

Используется в CarWheelType().