Exemplo 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);
        }
Exemplo 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);
        }