mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-19 00:51:51 +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
|