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