|
@ -41,6 +41,7 @@ namespace Smoll { |
|
|
parent.actionables.Sort(); |
|
|
parent.actionables.Sort(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Entity(Layer parent) { |
|
|
public Entity(Layer parent) { |
|
|
this.parent = null; |
|
|
this.parent = null; |
|
|
components = new List<Component>(); |
|
|
components = new List<Component>(); |
|
@ -51,6 +52,7 @@ namespace Smoll { |
|
|
layers = new List<Layer>(); |
|
|
layers = new List<Layer>(); |
|
|
layers.Add(parent); |
|
|
layers.Add(parent); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void Attach(Component component) { |
|
|
public void Attach(Component component) { |
|
|
component.owner = this; |
|
|
component.owner = this; |
|
|
components.Add(component); |
|
|
components.Add(component); |
|
|