Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }