mirror of
https://github.com/encounter/bfbb.git
synced 2026-07-09 18:19:36 -07:00
38 lines
661 B
C
38 lines
661 B
C
#ifndef XSURFACE_H
|
|
#define XSURFACE_H
|
|
|
|
#include "xBase.h"
|
|
|
|
struct xEnt;
|
|
|
|
struct xSurface : xBase
|
|
{
|
|
uint32 idx;
|
|
uint32 type;
|
|
union
|
|
{
|
|
uint32 mat_idx;
|
|
xEnt* ent;
|
|
void* obj;
|
|
};
|
|
float32 friction;
|
|
uint8 state;
|
|
uint8 pad[3];
|
|
void* moprops;
|
|
|
|
xSurface& operator=(const xSurface& ent);
|
|
};
|
|
|
|
#define XSURFACE_TYPE_1 1
|
|
#define XSURFACE_TYPE_3 3
|
|
|
|
void xSurfaceInit(uint16 num_surfs);
|
|
void xSurfaceExit();
|
|
void xSurfaceSave(xSurface* ent, xSerial* s);
|
|
void xSurfaceLoad(xSurface* ent, xSerial* s);
|
|
void xSurfaceReset(xSurface* ent);
|
|
uint16 xSurfaceGetNumSurfaces();
|
|
xSurface* xSurfaceGetByIdx(uint16 n);
|
|
|
|
#endif
|