22 lines
367 B
ActionScript
22 lines
367 B
ActionScript
class ActiveEntity : Service {
|
|
Entity entity;
|
|
|
|
[Expose]
|
|
Entity getActiveEntity() {
|
|
return entity;
|
|
}
|
|
[Expose]
|
|
void setActiveEntity(Entity ent) {
|
|
entity = ent;
|
|
}
|
|
|
|
void init() {
|
|
entity = Resource::getMainEnvironment().getRootEntity();
|
|
}
|
|
|
|
[Expose]
|
|
void wtf() {
|
|
Engine::print("Exposed");
|
|
}
|
|
}
|