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

◆ LockServer()

void LockServer ( EntityAI parent,
bool ignore_combination = false )
protected

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

273 {
274 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] CombinationLock.LockServer " + " m_Combination=" + m_Combination + " m_CombinationLocked=" + m_CombinationLocked);
275 if ( IsLockAttached() )
276 {
277 if ( !ignore_combination )
278 {
280
281 //set slot lock
282 InventoryLocation inventory_location = new InventoryLocation;
283 GetInventory().GetCurrentInventoryLocation( inventory_location );
284 parent.GetInventory().SetSlotLock( inventory_location.GetSlot(), true );
285
287 }
288 ShuffleLock();
289 SetTakeable(false);
291 //synchronize
292 Synchronize();
293 }
294
295 //reset performed action
296 //m_LockActionPerformed = LockAction.NONE;
297 }
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
Определения BaseBuildingBase.c:1292
void ShuffleLock()
Определения CombinationLock.c:342
void CheckLockedStateServer()
Определения CombinationLock.c:370
void SetCombinationLocked(int combination)
Определения CombinationLock.c:186
LockAction
Определения CombinationLock.c:2
void Synchronize()
Определения CombinationLock.c:151
int m_Combination
Определения CombinationLock.c:15
int m_CombinationLocked
Определения CombinationLock.c:16
bool IsLockAttached()
Определения CombinationLock.c:389
LockAction m_LockActionPerformed
Определения CombinationLock.c:20
override void SetTakeable(bool pState)
Определения ItemBase.c:9042
proto native int GetSlot()
returns slot id if current type is Attachment
InventoryLocation.
Определения InventoryLocation.c:29
static bool IsBaseBuildingLogEnable()
Определения Debug.c:698
Определения Debug.c:594

Перекрестные ссылки bsbDebugPrint(), CheckLockedStateServer(), InventoryLocation::GetSlot(), LogManager::IsBaseBuildingLogEnable(), IsLockAttached(), m_Combination, m_CombinationLocked, m_LockActionPerformed, SetCombinationLocked(), SetTakeable(), ShuffleLock() и Synchronize().

Используется в AfterStoreLoad() и OnItemLocationChanged().