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

◆ ExecuteInventoryCommandRemote()

bool ExecuteInventoryCommandRemote ( ParamsReadContext ctx)
protected

Serializer can be updated and re-written to when we may want to only correct the client instead of denying the inventory command

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

3634 {
3635 int type = -1;
3636 if (!ctx.Read(type))
3637 {
3638 return false;
3639 }
3640
3642 Serializer serializer = ctx;
3643
3644 switch (type)
3645 {
3646 case InventoryCommandType.USER_RESERVATION_CANCEL:
3647 if (!ExecuteUserReservationCancelRemote(serializer))
3648 {
3649 return false;
3650 }
3651 break;
3652 case InventoryCommandType.SYNC_MOVE:
3653 if (!ExecuteSyncMoveCommandRemote(serializer))
3654 {
3655 return false;
3656 }
3657 break;
3658 case InventoryCommandType.HAND_EVENT:
3659 if (!ExecuteHandEventCommandRemote(serializer))
3660 {
3661 return false;
3662 }
3663 break;
3664 case InventoryCommandType.SWAP:
3665 if (!ExecuteSwapCommandRemote(serializer))
3666 {
3667 return false;
3668 }
3669 break;
3670 default:
3671 break;
3672 }
3673
3674#ifdef ENABLE_LOGGING
3676 {
3677 Debug.InventoryMoveLog("Executed STS = " + GetDayZPlayerOwner().GetSimulationTimeStamp(), "SYNC_MOVE" , "n/a", "ExecuteInventoryCommandRemote", GetDayZPlayerOwner().ToString() );
3678 }
3679#endif
3680 return true;
3681 }
InventoryCommandType
bool ExecuteSyncMoveCommandRemote(ParamsReadContext ctx)
Определения DayZPlayerInventory.c:1464
bool ExecuteHandEventCommandRemote(inout Serializer ctx)
Определения DayZPlayerInventory.c:2264
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:170
bool ExecuteSwapCommandRemote(inout Serializer ctx)
Определения DayZPlayerInventory.c:3227
proto string ToString()
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:198
Определения 3_Game/DayZ/tools/Debug.c:2
static bool IsInventoryMoveLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:759
proto bool Read(void value_in)
Serialization general interface. Serializer API works with:
Определения Serializer.c:56

Перекрестные ссылки ExecuteHandEventCommandRemote(), ExecuteSwapCommandRemote(), ExecuteSyncMoveCommandRemote(), GetDayZPlayerOwner(), Debug::InventoryMoveLog(), LogManager::IsInventoryMoveLogEnable(), Serializer::Read() и ToString().

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