mirror of
https://github.com/id-Software/Quake-Tools.git
synced 2026-03-20 00:49:35 +01:00
Source release of QuakeEd, the map editing application on NEXTSTEP for Quake.
This commit is contained in:
42
QuakeEd/EntityClass.h
Normal file
42
QuakeEd/EntityClass.h
Normal file
@@ -0,0 +1,42 @@
|
||||
#import <appkit/appkit.h>
|
||||
#import "mathlib.h"
|
||||
|
||||
typedef enum {esize_model, esize_fixed} esize_t;
|
||||
|
||||
#define MAX_FLAGS 8
|
||||
|
||||
@interface EntityClass : Object
|
||||
{
|
||||
char *name;
|
||||
esize_t esize;
|
||||
vec3_t mins, maxs;
|
||||
vec3_t color;
|
||||
char *comments;
|
||||
char flagnames[MAX_FLAGS][32];
|
||||
}
|
||||
|
||||
- initFromText: (char *)text;
|
||||
- (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;
|
||||
|
||||
@end
|
||||
|
||||
extern id entity_classes_i;
|
||||
|
||||
@interface EntityClassList : List
|
||||
{
|
||||
id nullclass;
|
||||
char *source_path;
|
||||
}
|
||||
|
||||
- initForSourceDirectory: (char *)path;
|
||||
- (id)classForName: (char *)name;
|
||||
- (void)scanDirectory;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user