示例#1
0
        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);
        }
示例#2
0
        public static void dispatchAttributeChange(Entity e, object att)
        {
            ParentChangeEvent evt = new ParentChangeEvent(e.id, (UInt64)att);

            Kernel.eventManager.queueEvent(evt);
        }