X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fitems.h;h=37eace4393b149553f75db38286a3373c38a73c4;hp=2eff458258fd8e766aca9886309c21cd1b97253d;hb=534310c1f131bb9a53be865c32d90342ed026734;hpb=1907773f7b61fb7e58c585a183180b44d213a286 diff --git a/src/items.h b/src/items.h index 2eff458..37eace4 100644 --- a/src/items.h +++ b/src/items.h @@ -31,11 +31,20 @@ enum{I_NONE,I_CLIP,I_SHEL,I_ROCKET,I_CELL,I_AMMO,I_SBOX,I_RBOX,I_CELP, I_RTORCH,I_GTORCH,I_BTORCH,I_GOR1,I_FCAN,I_GUN2 }; +#pragma pack(1) +typedef struct{ + obj_t o; + int t; + int s; +}item_t; +#pragma pack() + +extern item_t it[MAXITEM]; + void IT_init(void); void IT_alloc(void); int IT_load(FILE*); void IT_act(void); -void IT_draw(void); void IT_spawn(int x,int y,int i); void IT_drop_ammo(int i,int n,int x,int y);