public EventManager.EventResult handleDependancy(Event e) { ParentChangeEvent em = e as ParentChangeEvent; if (em != null) { Entity ent = myDatabase.findEntity(em.entity); Entity parent = myDatabase.findEntity(em.parent); placeEntity(ent, parent); } return(EventManager.EventResult.HANDLED); }
public static void dispatchAttributeChange(Entity e, object att) { ParentChangeEvent evt = new ParentChangeEvent(e.id, (UInt64)att); Kernel.eventManager.queueEvent(evt); }