Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
added sound system and graphics helpers; converted more tabs ot spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nexussays committed May 18, 2018
1 parent 28b9783 commit 62de73d
Show file tree
Hide file tree
Showing 34 changed files with 3,202 additions and 1,280 deletions.
50 changes: 25 additions & 25 deletions src/nexus/ClassFactory.as
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,34 @@ package nexus
*/
public class ClassFactory implements IFactory
{
private var m_class : Class;
private var m_properties : Object;
private var m_class : Class;
private var m_properties : Object;

public function ClassFactory(source:Class, properties:Object = null)
{
m_class = source;
m_properties = properties;
}
public function ClassFactory(source:Class, properties:Object = null)
{
m_class = source;
m_properties = properties;
}

public function get type():Class { return m_class; }
public function get type():Class { return m_class; }

public function get properties():Object { return m_properties; }
public function set properties(value:Object):void
{
m_properties = value;
}
public function get properties():Object { return m_properties; }
public function set properties(value:Object):void
{
m_properties = value;
}

public function create():*
{
var instance:* = new m_class();
if(m_properties != null)
{
for(var property:String in m_properties)
{
instance[property] = m_properties[property];
}
}
return instance;
}
public function create():*
{
var instance:* = new m_class();
if(m_properties != null)
{
for(var property:String in m_properties)
{
instance[property] = m_properties[property];
}
}
return instance;
}
}
}
Loading

0 comments on commit 62de73d

Please sign in to comment.