quakeforge/tools/Forge/Bundles/MapEdit/Entity.h
Bill Currie 032f16d1b3 Some compile fixes.
Not enough, but covers Object->NSObject and header file protection.
2010-11-28 15:31:30 +09:00

42 lines
737 B
Objective-C

#ifndef Entity_h
#define Entity_h
#define MAX_KEY 64
#define MAX_VALUE 128
typedef struct epair_s
{
struct epair_s *next;
char key[MAX_KEY];
char value[MAX_VALUE];
} epair_t;
// an Entity is a list of brush objects, with additional key / value info
@interface Entity : NSObject <NSCopying, NSMutableCopying>
{
epair_t *epairs;
BOOL modifiable;
}
- initClass: (char *)classname;
- initFromTokens;
- free;
- (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:(char *)k toValue:(char *)v;
- (int)numPairs;
- (epair_t *)epairs;
- removeKeyPair: (char *)key;
@end
#endif//Entity_h