public Entity addEntity(Entity e) { myEntityMap[e.id] = e; onEntityAdded(e); EntityAddedEvent em = new EntityAddedEvent(e.id, e.attribute <String>("type").value()); Kernel.eventManager.queueEvent(em); return(e); }
public Entity addEntity(Entity e) { myEntityMap[e.id] = e; onEntityAdded(e); EntityAddedEvent em = new EntityAddedEvent(e.id, e.state.attribute <String>(Attributes.Type).value()); Application.eventManager.queueEvent(em); return(e); }