DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
AdditionalDoorsInfo.c
См. документацию.
1
3{
4 protected string m_DoorPath;
5
6 string m_DoorType;
13
14 void AdditionalDoorInfo(string doorName, string doorPath)
15 {
16 m_DoorType = doorName;
17 m_DoorPath = doorPath;
18 }
19
20 //parse and load whatever here
21 void Init()
22 {
23 if (g_Game.ConfigIsExisting(m_DoorPath + " relatedInventorySlots"))
24 {
26 g_Game.ConfigGetTextArray(m_DoorPath + " relatedInventorySlots", m_RelatedInventorySlotNames);
27 }
28
29 if (g_Game.ConfigIsExisting(m_DoorPath + " lockCompatibilityBitMask"))
30 m_LockCompatibilityBitMask = g_Game.ConfigGetInt(m_DoorPath + " lockCompatibilityBitMask");
31 else
32 m_LockCompatibilityBitMask = 1 << EBuildingLockType.LOCKPICK; //default behavior if not configured
33
34 if (g_Game.ConfigIsExisting(m_DoorPath + " interactPositionPoint"))
35 m_InteractLimitingPositionPoint = g_Game.ConfigGetTextOut(m_DoorPath + " interactPositionPoint");
36
37 if (g_Game.ConfigIsExisting(m_DoorPath + " interactDirPoint"))
38 m_InteractLimitingDirPoint = g_Game.ConfigGetTextOut(m_DoorPath + " interactDirPoint");
39
40 if (g_Game.ConfigIsExisting(m_DoorPath + " doorConstructionPart"))
41 m_DoorConstructionPartName = g_Game.ConfigGetTextOut(m_DoorPath + " doorConstructionPart");
42
43 if (g_Game.ConfigIsExisting(m_DoorPath + " doorConstructionPhysicsSource"))
44 m_DoorConstructionPhysicsSource = g_Game.ConfigGetTextOut(m_DoorPath + " doorConstructionPhysicsSource");
45 }
46}
47
50{
51 protected string m_ParentType;
53
54 void AdditionalDoorInfosHolder(string parentType)
55 {
56 m_ParentType = parentType;
57 }
58
59 void Init()
60 {
61 string path = "cfgVehicles " + m_ParentType + " Doors";
62 string doorName;
63 string doorPath;
65 int count = g_Game.ConfigGetChildrenCount(path);
66 for (int doorIdx = 0; doorIdx < count; ++doorIdx)
67 {
68 g_Game.ConfigGetChildName(path, doorIdx, doorName);
69 doorPath = path + " " + doorName;
70
71 info = null;
72 if (g_Game.ConfigIsExisting(doorPath))
73 {
74 info = new AdditionalDoorInfo(doorName, doorPath);
75 info.Init();
76 }
77
78 m_DoorInfosMap.Set(doorIdx, info);
79 }
80 }
81
83 {
84 return m_DoorInfosMap.Get(doorIdx);
85 }
86
91}
map< int, ref AdditionalDoorInfo > GetDoorInfoMap()
Определения AdditionalDoorsInfo.c:87
void AdditionalDoorInfosHolder(string parentType)
Определения AdditionalDoorsInfo.c:54
AdditionalDoorInfo GetSingleDoorInfo(int doorIdx)
Определения AdditionalDoorsInfo.c:82
ref map< int, ref AdditionalDoorInfo > m_DoorInfosMap
Определения AdditionalDoorsInfo.c:52
class AdditionalDoorInfo m_ParentType
Holds infos for all doors on a single building type.
map
Определения ControlsXboxNew.c:4
DayZGame g_Game
Определения DayZGame.c:4074
override Widget Init()
Определения DayZGame.c:127
EBuildingLockType
Lock types enum, meant for bitwise usage.
Определения EBuildingLockTypes.c:8
string path
Определения OptionSelectorMultistate.c:142
string m_InteractLimitingDirPoint
memory point name for limiting open/close actions on the door/window
Определения AdditionalDoorsInfo.c:8
string m_DoorType
Определения AdditionalDoorsInfo.c:6
string m_InteractLimitingPositionPoint
Определения AdditionalDoorsInfo.c:7
void Init()
Определения AdditionalDoorsInfo.c:21
string m_DoorConstructionPhysicsSource
Name of the construction part linked to the doors, if any (empty default)
Определения AdditionalDoorsInfo.c:10
string m_DoorConstructionPartName
memory point name for limiting open/close actions on the door/window
Определения AdditionalDoorsInfo.c:9
int m_LockCompatibilityBitMask
Name of the AnimationSource controlling door physics (required for rebuildable doors,...
Определения AdditionalDoorsInfo.c:11
void AdditionalDoorInfo(string doorName, string doorPath)
Inventory slots that have something to do with this door. Mostly external locks?
Определения AdditionalDoorsInfo.c:14
string m_DoorPath
Определения AdditionalDoorsInfo.c:4
ref TStringArray m_RelatedInventorySlotNames
Lock compatibility type, now in door config. Lockpick enabled by default if undefined.
Определения AdditionalDoorsInfo.c:12
Single door info.
Определения AdditionalDoorsInfo.c:3
Определения Transport.c:70
class array< Class T > TStringArray