-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminifigures.h
55 lines (42 loc) · 994 Bytes
/
minifigures.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
int id;
const char* name;
// const char* world;
// const char* abilities;
} Minifigure;
extern Minifigure minifigures[];
typedef struct {
int id;
const char* name;
// upgrades, not yet implemented
} Vehicle;
extern Vehicle vehicles[];
// count of minifigures
extern int minifigures_count;
// count of vehicles
extern int vehicles_count;
/**
* @brief Get the character name by its id
* @param id The id of the character
* @return The character name
*/
const char* get_minifigure_name(int id);
/**
* @brief Get the character id by its name
* @param name The name of the character
* @return The character id
*/
// int get_minifigure_id(const char* name);
/**
* @brief Get the vehicle name by its id
* @param id The id of the vehicle
* @return The vehicle name
*/
const char* get_vehicle_name(int id);
#ifdef __cplusplus
}
#endif