-
Notifications
You must be signed in to change notification settings - Fork 0
/
Entity.h
38 lines (36 loc) · 784 Bytes
/
Entity.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
//
// Created by admin on 11/5/2020.
//
#ifndef SERVER_C_VERSION__ENTITY_H
#define SERVER_C_VERSION__ENTITY_H
#include <stdbool.h>
#include"Server.h"
typedef struct {
int w;
int h;
int x;
int y;
}rect;
typedef struct Size{
float width;
float height;
bool Shouldscale;
float scalewidth;
float scaleheight;
}Size;
typedef struct {
const char* name;
rect Entity_Sprite;
Size Entity_Size;
float posX;
float posY;
int Enitiy_Speed_Multiplier;
int Entity_X_Speed;
int Entity_Y_Speed;
int Entity_ID;
char* Entity_CustomData;
}EntityData;
void SendEntity(EntityData* entity);
void SendCullsionData();
void SendJump(EntityData* entityData);
#endif //SERVER_C_VERSION__ENTITY_H