-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvector.h
42 lines (31 loc) · 919 Bytes
/
vector.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
#pragma once
#include "rpgclass.h"
typdef struct vector {
union* data {
rpgclass class;
location location;
} data;
//rpgclass* data;
int mode;//What type of data?
size_t limit; // Total size of the vector
size_t current; //Number of vectors in it at present
};
/*
typdef struct vector_location {
vector* data;
size_t limit; // Total size of the vector
size_t current; //Number of vectors in it at present
};
*/
typedef struct vector_map {
vector* data;
size_t limit; // Total size of the vector
size_t current; //Number of vectors in it at present
}
//void vector_setlimit();
void vector_push_rpgclass(vector v, rpgclass class);
void vector_push_rpgclass(vector v, rpgclass class);
void vector_push_map(vector_map m, vector_map map);
struct rpgclass vector_pop_rpgclass();
struct location vector_pop_location();
struct map vector_pop_map();