blob: 01f5008a4aedd55073d39b7ac131427ef9425619 (
plain)
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
|
#ifndef DATA_LOCALGAME_H
#define DATA_LOCALGAME_H
#include "data_types.h"
typedef struct {
SDL_Rect screen;
} gameConfig_t;
typedef struct {
int zOrder, surfId, animFrames, currentAnimFrame;
SDL_Rect *objectsBBox;
} gameGraphObjState_t;
typedef struct {
SDL_Surface *screen, *terrain, *stencil, **objectsSurf;
gameGraphObjState_t *objectsStat;
} gameGraphSurfaces_t;
typedef struct {
SDL_Surface *screen;
SDL_Rect viewport; // Viewport top-left corner coords in screen
gameGraphSurfaces_t surfaces;
int dirtRectsCount;
SDL_Rect *dirtRects; // Dirt rectangles to refresh for current tick
} gameGraphics_t;
typedef struct {
id_t levelPack;
id_t level;
} serverParams_t;
#endif /*DATA_LOCALGAME_H*/
|