mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-17 22:00:26 +02:00
41 lines
817 B
C
41 lines
817 B
C
/*
|
|
GARBAGE.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __GARBAGE_H
|
|
#define __GARBAGE_H
|
|
#pragma once
|
|
|
|
#include "items/items.h"
|
|
#include "objects/object_types.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
#define garbage_get(index) ((struct garbage_datum *)object_get_and_verify_type((index), _object_mask_garbage))
|
|
#define garbage_try_and_get(index) ((struct garbage_datum *)object_try_and_get_and_verify_type((index), _object_mask_garbage))
|
|
|
|
/* ---------- structures */
|
|
|
|
struct garbage_datum
|
|
{
|
|
long definition_index;
|
|
struct _object_datum object;
|
|
struct _item_datum item;
|
|
short lifetime_ticks;
|
|
};
|
|
|
|
/* ---------- prototypes/GARBAGE.C */
|
|
|
|
boolean garbage_update(long garbage_index);
|
|
boolean garbage_new(long garbage_index);
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
#endif // __GARBAGE_H
|