mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 20:50:42 +00:00
bbaaaae81c
of qfcc. doesn't do much yet.
34 lines
331 B
R
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
|