This site has been archived and made available for preservation purposes. No edits can be made.

Type

[top]Definition

Code cpp:
enum VAULTCPP(class) Type VAULTCPP(: uint8_t)
{
	ID_REFERENCE = 0x01,
	ID_OBJECT = ID_REFERENCE << 1,
	ID_ITEM = ID_OBJECT << 1,
	ID_CONTAINER = ID_ITEM << 1,
	ID_ACTOR = ID_CONTAINER << 1,
	ID_PLAYER = ID_ACTOR << 1,
 
	ALL_OBJECTS = (ID_OBJECT | ID_ITEM | ID_CONTAINER | ID_ACTOR | ID_PLAYER),
	ALL_CONTAINERS = (ID_CONTAINER | ID_ACTOR | ID_PLAYER),
	ALL_ACTORS = (ID_ACTOR | ID_PLAYER),
};
Code c:
typedef uint8_t Type;
Code c:
const Type: {
        ID_REFERENCE = 0x01,
        ID_OBJECT = ID_REFERENCE << ID_REFERENCE,
        ID_ITEM = ID_OBJECT << ID_REFERENCE,
        ID_CONTAINER = ID_ITEM << ID_REFERENCE,
        ID_ACTOR = ID_CONTAINER << ID_REFERENCE,
        ID_PLAYER = ID_ACTOR << ID_REFERENCE,
 
        ALL_OBJECTS = (ID_OBJECT | ID_ITEM | ID_CONTAINER | ID_ACTOR | ID_PLAYER),
        ALL_CONTAINERS = (ID_CONTAINER | ID_ACTOR | ID_PLAYER),
        ALL_ACTORS = (ID_ACTOR | ID_PLAYER),
}