Skip to content

Commit

Permalink
changed addEntity to createEntity as this saves on code
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdavies committed Aug 19, 2010
1 parent d8d42ea commit 902f5d3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
13 changes: 8 additions & 5 deletions README.txt → README.textile
@@ -1,11 +1,14 @@
h2. Ember: A component based entity framework for Flash and Flex

Ember is a fast flexible expandable game development framework. Ember is designed to address the issues with traditional game architecture and encourage reuse and flexibility.
h2. Ember: A component based entity framework for Flash and Flex with DI

Ember supports:
Ember is a flexible expandable game development framework. Ember is designed to address the issues with traditional game architecture and encourage reuse and flexibility of component systems. Ember makes use of dependency injection for ease of coding without compromising speed.

Ember enables:

* Component based game architecture
* Automated Injection in subsystems
* Automated Injection in game systems
* Freedom to implement the game as you see fit
* Fully modular



Expand All @@ -25,4 +28,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
Binary file modified bin/Ember.swc
Binary file not shown.
4 changes: 3 additions & 1 deletion src/com/tomseysdavies/ember/base/EntityManager.as
Expand Up @@ -36,9 +36,11 @@ package com.tomseysdavies.ember.base {
/**
* @inheritDoc
*/
public function addEntity(entity:IEntity):void {
public function createEntity():IEntity{
var entity:IEntity = new Entity();
entity.manager = this;
_components[entity] = new Dictionary();
return entity;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/com/tomseysdavies/ember/core/IEntityManger.as
Expand Up @@ -10,12 +10,12 @@ package com.tomseysdavies.ember.core{
public interface IEntityManger extends IDestroyable {

/**
* registers an entity
* creates a new entity
*
* @param entity
* @return the new entity
*
*/
function addEntity(entity:IEntity):void;
function createEntity():IEntity;

/**
* unregisters an entity
Expand Down

0 comments on commit 902f5d3

Please sign in to comment.