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

46 lines
831 B
C
Raw Normal View History

#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
2010-09-11 16:41:18 +00:00
@interface Entity:NSMutableArray
{
NSMutableArray *array;
2010-09-11 10:06:04 +00:00
epair_t *epairs;
BOOL modifiable;
}
2010-09-28 09:41:38 +00:00
-initClass:(const char *) classname;
2010-09-11 10:06:04 +00:00
-initFromScript:(struct script_s *) script;
2010-09-11 10:06:04 +00:00
-(void) dealloc;
2010-09-11 10:06:04 +00:00
-(BOOL) modifiable;
-setModifiable:(BOOL) m;
-(const char *) targetname;
2010-09-11 16:41:18 +00:00
-writeToFILE:(FILE *)f region:(BOOL) reg;
-(const char *) valueForQKey:(const char *) k;
2010-09-28 09:41:38 +00:00
-getVector:(vec3_t)v forKey:(const char *) k;
2010-09-28 09:41:38 +00:00
-setKey:(const char *) k toValue:(const char *) v;
2010-09-11 10:06:04 +00:00
-(int) numPairs;
-(epair_t *) epairs;
2010-09-28 09:41:38 +00:00
-removeKeyPair:(const char *) key;
2010-09-11 10:06:04 +00:00
@end
#endif // Entity_h