mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 15:51:36 +00:00
29 lines
276 B
R
29 lines
276 B
R
|
#include "Entity.h"
|
||
|
|
||
|
@implementation Entity
|
||
|
|
||
|
- (id) init
|
||
|
{
|
||
|
return [self initWithEntity: spawn ()];
|
||
|
}
|
||
|
|
||
|
- (id) initWithEntity: (entity)e
|
||
|
{
|
||
|
ent = e;
|
||
|
ent.@this = self;
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
- (void) free
|
||
|
{
|
||
|
remove (ent);
|
||
|
[super free];
|
||
|
}
|
||
|
|
||
|
- (entity) ent
|
||
|
{
|
||
|
return self.ent;
|
||
|
}
|
||
|
|
||
|
@end
|