Kohi Game Engine
world_types.h File Reference
#include <core_resource_types.h>
#include <defines.h>
#include <math/math_types.h>

Go to the source code of this file.

Data Structures

struct  kcollision_shape
 

Macros

#define KENTITY_INVALID   INVALID_ID_U64
 

Typedefs

typedef enum kshape_type kshape_type
 
typedef enum kscene_volume_type kscene_volume_type
 
typedef struct kcollision_shape kcollision_shape
 
typedef u64 kentity
 
typedef enum kentity_flag_bits kentity_flag_bits
 
typedef u32 kentity_flags
 
typedef enum kentity_type kentity_type
 

Enumerations

enum  kshape_type { KSHAPE_TYPE_SPHERE , KSHAPE_TYPE_RECTANGLE }
 
enum  kscene_volume_type { KSCENE_VOLUME_TYPE_TRIGGER }
 
enum  kentity_flag_bits { KENTITY_FLAG_NONE = 0 , KENTITY_FLAG_FREE_BIT = 1 << 0 , KENTITY_FLAG_SERIALIZABLE_BIT = 1 << 1 }
 
enum  kentity_type {
  KENTITY_TYPE_NONE , KENTITY_TYPE_MODEL , KENTITY_TYPE_HEIGHTMAP_TERRAIN , KENTITY_TYPE_WATER_PLANE ,
  KENTITY_TYPE_AUDIO_EMITTER , KENTITY_TYPE_VOLUME , KENTITY_TYPE_HIT_SHAPE , KENTITY_TYPE_POINT_LIGHT ,
  KENTITY_TYPE_SPAWN_POINT , KENTITY_TYPE_COUNT , KENTITY_TYPE_INVALID = INVALID_ID_U16
}
 

Macro Definition Documentation

◆ KENTITY_INVALID

#define KENTITY_INVALID   INVALID_ID_U64

Typedef Documentation

◆ kcollision_shape

◆ kentity

typedef u64 kentity

An identifier for an entity within a scene.

@description Memory layout: u16 entity type. This could be reduced to a u8 if other data is needed in here. u16 entity type index (or index into the type-specific array). u16 unused/reserved - index of the internal hierarchy node array. u16 unused/reserved for the future.

◆ kentity_flag_bits

◆ kentity_flags

typedef u32 kentity_flags

◆ kentity_type

typedef enum kentity_type kentity_type

◆ kscene_volume_type

◆ kshape_type

typedef enum kshape_type kshape_type

Enumeration Type Documentation

◆ kentity_flag_bits

Enumerator
KENTITY_FLAG_NONE 
KENTITY_FLAG_FREE_BIT 
KENTITY_FLAG_SERIALIZABLE_BIT 

◆ kentity_type

Enumerator
KENTITY_TYPE_NONE 
KENTITY_TYPE_MODEL 
KENTITY_TYPE_HEIGHTMAP_TERRAIN 
KENTITY_TYPE_WATER_PLANE 
KENTITY_TYPE_AUDIO_EMITTER 
KENTITY_TYPE_VOLUME 
KENTITY_TYPE_HIT_SHAPE 
KENTITY_TYPE_POINT_LIGHT 
KENTITY_TYPE_SPAWN_POINT 
KENTITY_TYPE_COUNT 
KENTITY_TYPE_INVALID 

◆ kscene_volume_type

Enumerator
KSCENE_VOLUME_TYPE_TRIGGER 

◆ kshape_type

Enumerator
KSHAPE_TYPE_SPHERE 
KSHAPE_TYPE_RECTANGLE