Base Entity keeps track of core
This commit is contained in:
@@ -11,9 +11,12 @@ namespace DepthsBelow
|
||||
List<Component.Component> Components;
|
||||
public Component.PixelTransform pixelTransform;
|
||||
public Component.GridTransform gridTransform;
|
||||
private Core core;
|
||||
|
||||
public Entity()
|
||||
public Entity(Core core)
|
||||
{
|
||||
this.core = core;
|
||||
|
||||
Components = new List<Component.Component>();
|
||||
pixelTransform = new Component.PixelTransform(this);
|
||||
AddComponent(pixelTransform);
|
||||
|
||||
@@ -11,14 +11,11 @@ namespace DepthsBelow
|
||||
public static Texture2D Texture;
|
||||
public static Point Origin;
|
||||
private bool _selected;
|
||||
private Core game;
|
||||
|
||||
private KeyboardState lastKeyboardState;
|
||||
|
||||
public Soldier(Core game)
|
||||
public Soldier(Core core) : base(core)
|
||||
{
|
||||
this.game = game;
|
||||
|
||||
if (Texture == null)
|
||||
LoadContent(game);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user