mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
41 lines
679 B
C
41 lines
679 B
C
|
|
||
|
#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: NSMutableArray
|
||
|
{
|
||
|
epair_t *epairs;
|
||
|
BOOL modifiable;
|
||
|
}
|
||
|
|
||
|
- initClass: (char *)classname;
|
||
|
- initFromTokens;
|
||
|
|
||
|
- (oneway void) release;
|
||
|
|
||
|
- (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
|
||
|
|
||
|
|