-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpack.h
executable file
·41 lines (31 loc) · 880 Bytes
/
pack.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
/* pack.h */
#ifndef PACK_H
#define PACK_H
#include <raylib.h>
#include "spritesheet.h"
struct Pack {
char *name;
char *description;
float roundness;
float width, height;
Vector2 *ssFaceMap; // always 52 entries
char *ssFaceFname;
Vector2 *ssBackMap;
int backMapEntries;
char *ssBackFname;
int backFrame; // TODO make this a user option
struct Spritesheet *ssFace; // built in Ctor
struct Spritesheet *ssBack; // built in Ctor
Font unicodeFont; // for unicode cards, built in Ctor
char *unicodeFontFname;
float unicodeFontExpansion;
int numberOfColors;
// piggy-back some Pile things that depend on Card Pack
Font pileFont;
int pileFontSize;
int labelFontSize;
Font symbolFont;
};
struct Pack *PackCtor(const char *name);
void PackDtor(struct Pack *self);
#endif