quakeforge/ruamoko/lib/entity.r
2002-08-14 15:40:30 +00:00

34 lines
331 B
R

#include "entity.h"
entity () spawn = #0;
void (entity e) remove = #0;
@implementation Entity
-init
{
return [self initWithEntity:[self new]];
}
-initWithEntity:(entity)e
{
self.ent = e;
e.@this = self;
return self;
}
-free
{
remove (self.ent);
return self;
}
-new
{
return spawn ();
}
-ent
{
return self.ent;
}
@end