quakeforge/tools/Forge/Bundles/MapEdit/EntityClass.h
Bill Currie f105fbd6a0 Use NS* classes for QUAKED directory scanning.
The scanning of actual files is still done using normal C strings, but now
everything up to (but not including) opening the file is handled by *step.
2010-12-26 20:45:01 +09:00

46 lines
1,000 B
Objective-C

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