-
Notifications
You must be signed in to change notification settings - Fork 0
/
LocBaseComponents.h
38 lines (32 loc) · 711 Bytes
/
LocBaseComponents.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef LOCALITY_BASE_COMPONENTS_H
#define LOCALITY_BASE_COMPONENTS_H
#include <inttypes.h>
#include "projectComponents.h"
typedef enum COMPONENT_ID{
POSITION_C=0,
BLITABLE_C=1,
PRESSABLE_C=2,
PRESSABLE_ARG_C=3,
TEXT_C=4,
FORCES_C=5,
BEHAVIOR_C=6,
REPEATER_C=7,
REPEATER_ARG_C=8,
PROJET_COMPONENTS_H,
LOCALITY_COMPONENT_COUNT
}COMPONENT_ID;
typedef enum LOCALITY_COMPONENT_SENTINELS{
REPEATER_SENTINEL=-1
}LOCALITY_COMPONENT_SENTINELS;
typedef struct behavior_l{
void (*action)(uint32_t entity);
}behavior_l;
typedef struct repeater_l{
void (*action)(void*);
uint32_t triggerInterval;
int32_t triggerTime;
uint32_t actionCount;
int32_t maxTriggers;
int32_t maxTime;
}repeater_l;
#endif