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

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

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

139 {
140 if (!super.OnStoreLoad(ctx, version))
141 return false;
142
143 //--- Combination Lock data ---
144 //combination one (outside lock)
145 if (!ctx.Read(m_Combination))
146 {
147 m_Combination = 0;
148 return false;
149 }
150
151 //combination locked
152 if (!ctx.Read(m_CombinationLocked))
153 {
156 return false;
157 }
158
159 //is lock attached
160 if (version < 105) //removed in 105
161 {
162 bool isLockAttached;
163 if (!ctx.Read(isLockAttached))
164 {
165 return false;
166 }
167 }
168
169 if (version >= 143) //added with 143
170 {
171 //combination two (inside lock)
172 if (!ctx.Read(m_CombinationInside))
173 {
175 return false;
176 }
177 }
178
179 return true;
180 }
int m_LockDigitsCount
Определения CombinationLock.c:38
int m_Combination
Определения CombinationLock.c:33
int m_CombinationLocked
Определения CombinationLock.c:35
int m_CombinationInside
Определения CombinationLock.c:34
proto bool Read(void value_in)

Перекрестные ссылки m_Combination, m_CombinationInside, m_CombinationLocked, m_LockDigitsCount и Serializer::Read().