DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл InventoryLocation.c

См. исходные тексты.

Структуры данных

class  InventoryLocation
 InventoryLocation. Подробнее...
 

Перечисления

enum  InventoryLocationType {
  UNKNOWN , GROUND , ATTACHMENT , CARGO ,
  HANDS , PROXYCARGO , VEHICLE
}
 types of Inventory Location Подробнее...
 
enum  FindInventoryLocationType {
  ATTACHMENT , CARGO , HANDS , PROXYCARGO ,
  ANY_CARGO , ANY , NO_SLOT_AUTO_ASSIGN
}
 flags for searching locations in inventory Подробнее...
 

Функции

bool OptionalLocationWriteToContext (InventoryLocation loc, notnull ParamsWriteContext ctx)
 
bool OptionalLocationReadFromContext (out InventoryLocation loc, notnull ParamsReadContext ctx)
 

Перечисления

◆ FindInventoryLocationType

flags for searching locations in inventory

Элементы перечислений
ATTACHMENT 

< ground

ATT.

attachment of another entity

CARGO 

cargo of another entity

CGO.

HANDS 

hands of another entity

HND.

PROXYCARGO 

cargo of a large object (building,...)

PXY.

ANY_CARGO 

CGO | PXY.

ANY 

ATT | CGO | PXY | HND.

NO_SLOT_AUTO_ASSIGN 

skips auto-assign test

17{
19 CARGO,
20 HANDS,
22 ANY_CARGO,
23 ANY,
25};
@ PROXYCARGO
cargo of a large object (building,...)
Definition InventoryLocation.c:10
@ ANY
ATT | CGO | PXY | HND.
Definition InventoryLocation.c:23
@ ANY_CARGO
CGO | PXY.
Definition InventoryLocation.c:22
@ HANDS
hands of another entity
Definition InventoryLocation.c:9
@ CARGO
cargo of another entity
Definition InventoryLocation.c:8
@ NO_SLOT_AUTO_ASSIGN
skips auto-assign test
Definition InventoryLocation.c:24
@ ATTACHMENT
< ground
Definition InventoryLocation.c:7

◆ InventoryLocationType

types of Inventory Location

Элементы перечислений
UNKNOWN 

unknown, usually freshly created object

GROUND 
ATTACHMENT 

< ground

ATT.

attachment of another entity

CARGO 

cargo of another entity

CGO.

HANDS 

hands of another entity

HND.

PROXYCARGO 

cargo of a large object (building,...)

PXY.

VEHICLE 
4{
5 UNKNOWN,
6 GROUND,
8 CARGO,
9 HANDS,
11 VEHICLE,
12};
@ UNKNOWN
unknown, usually freshly created object
Definition InventoryLocation.c:5
@ GROUND
Definition InventoryLocation.c:6
@ VEHICLE
Definition InventoryLocation.c:11

Функции

◆ OptionalLocationReadFromContext()

bool OptionalLocationReadFromContext ( out InventoryLocation loc,
notnull ParamsReadContext ctx )
663{
664 bool present = false;
665 if (!ctx.Read(present))
666 {
667 Error("OptionalLocationReadFromContext - cannot read bool from context!");
668 return false;
669 }
670
671 if (!present)
672 return true;
673
674 loc = new InventoryLocation();
675 if (!loc.ReadFromContext(ctx))
676 {
677 Error("OptionalLocationReadFromContext - cannot read (present) inventorylocation from context!");
678 return false;
679 }
680 return true;
681}
InventoryLocation.
Definition InventoryLocation.c:29
Definition EntityAI.c:95
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90

Перекрестные ссылки Error().

Используется в CreateHandEventFromContext(), WeaponStateBase::LoadCurrentFSMState(), LoadCurrentFSMState() и HandEventRemove::ReadFromContext().

◆ OptionalLocationWriteToContext()

bool OptionalLocationWriteToContext ( InventoryLocation loc,
notnull ParamsWriteContext ctx )
641{
642 if (loc)
643 {
644 if (!ctx.Write(true))
645 {
646 Error("OptionalLocationWriteToContext - cannot write 1 to context!");
647 return false;
648 }
649 return loc.WriteToContext(ctx);
650 }
651 else
652 {
653 if (!ctx.Write(false))
654 {
655 Error("OptionalLocationWriteToContext - cannot write 0 to context!");
656 return false;
657 }
658 }
659 return true;
660}

Перекрестные ссылки Error().

Используется в WeaponStateBase::SaveCurrentFSMState(), SaveCurrentFSMState(), WriteToContext() и HandEventRemove::WriteToContext().