mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
5e1ce57322
Ruamoko standard library overhaul.
28 lines
276 B
R
28 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
|