quakeforge/tools/Forge/Bundles/MapEdit/EntityClass.h

47 lines
910 B
C
Raw Normal View History

#ifndef EntityClass_h
#define EntityClass_h
#include <AppKit/AppKit.h>
#include "QF/mathlib.h"
2010-09-11 10:06:04 +00:00
typedef enum { esize_model, esize_fixed } esize_t;
#define MAX_FLAGS 8
2010-09-11 16:41:18 +00:00
@interface EntityClass:NSObject
{
2010-09-11 10:06:04 +00:00
char *name;
esize_t esize;
vec3_t mins, maxs;
vec3_t color;
char *comments;
char *flagnames[MAX_FLAGS];
}
2010-09-11 16:41:18 +00:00
-initFromText:(const char *)text source:(const char *) filename;
2010-09-11 10:06:04 +00:00
-(char *) classname;
-(esize_t) esize;
-(float *) mins; // only for esize_fixed
-(float *) maxs; // only for esize_fixed
-(float *) drawColor;
-(char *) comments;
-(char *) flagName:(unsigned) flagnum;
2010-09-11 10:06:04 +00:00
@end extern id entity_classes_i;
2010-09-11 10:06:04 +00:00
@interface EntityClassList:NSMutableArray
{
NSMutableArray *array;
2010-09-11 10:06:04 +00:00
id nullclass;
char *source_path;
}
2010-09-11 10:06:04 +00:00
-initForSourceDirectory:(char *) path;
-(id) classForName:(char *) name;
-(void) scanDirectory;
@end
2010-09-11 10:06:04 +00:00
#endif // EntityClass_h