mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
0e4259361c
Segfaults, but the Map class can now be instantiated.
46 lines
805 B
Objective-C
46 lines
805 B
Objective-C
#ifndef Entity_h
|
|
#define Entity_h
|
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
#include "QF/mathlib.h"
|
|
|
|
typedef struct epair_s {
|
|
struct epair_s *next;
|
|
char *key;
|
|
char *value;
|
|
} epair_t;
|
|
|
|
// an Entity is a list of brush objects, with additional key / value info
|
|
|
|
@interface Entity:NSMutableArray
|
|
{
|
|
NSMutableArray *array;
|
|
epair_t *epairs;
|
|
BOOL modifiable;
|
|
}
|
|
|
|
-initClass:(char *) classname;
|
|
-initFromScript:(struct script_s *) script;
|
|
|
|
-(void) dealloc;
|
|
|
|
-(BOOL) modifiable;
|
|
-setModifiable:(BOOL) m;
|
|
|
|
-(char *) targetname;
|
|
|
|
-writeToFILE:(FILE *)f region:(BOOL) reg;
|
|
|
|
-(char *) valueForQKey:(char *) k;
|
|
-getVector:(vec3_t)v forKey:(char *) k;
|
|
|
|
-setKey:(const char *)
|
|
k toValue:(const char *) v;
|
|
|
|
-(int) numPairs;
|
|
-(epair_t *) epairs;
|
|
-removeKeyPair:(char *) key;
|
|
|
|
@end
|
|
#endif // Entity_h
|