From 23a6e7a951c16ad437bd1ef1d31de5226c2efd78 Mon Sep 17 00:00:00 2001 From: Simon Holmberg Date: Wed, 19 Sep 2012 12:07:22 +0200 Subject: [PATCH] Basic component system --- DepthsBelow/DepthsBelow/Component.cs | 17 +++++++ DepthsBelow/DepthsBelow/DepthsBelow.csproj | 25 +++++++++- .../DepthsBelow.csproj.Debug.cachefile | 1 + .../DepthsBelow/DepthsBelow.csproj.user | 3 ++ .../DepthsBelow/DepthsBelow_TemporaryKey.pfx | Bin 0 -> 1684 bytes DepthsBelow/DepthsBelow/Entity.cs | 33 +++++++++++++ DepthsBelow/DepthsBelow/Game1.cs | 18 +++++++ DepthsBelow/DepthsBelow/RenderComponent.cs | 25 ++++++++++ DepthsBelow/DepthsBelow/Soldier.cs | 46 ++++++++++++++++++ DepthsBelow/DepthsBelow/TransformComponent.cs | 22 +++++++++ .../DepthsBelowContent.contentproj | 7 +++ .../DepthsBelowContent/images/soldier.bmp | Bin 0 -> 1270 bytes 12 files changed, 195 insertions(+), 2 deletions(-) create mode 100644 DepthsBelow/DepthsBelow/Component.cs create mode 100644 DepthsBelow/DepthsBelow/DepthsBelow.csproj.Debug.cachefile create mode 100644 DepthsBelow/DepthsBelow/DepthsBelow_TemporaryKey.pfx create mode 100644 DepthsBelow/DepthsBelow/Entity.cs create mode 100644 DepthsBelow/DepthsBelow/RenderComponent.cs create mode 100644 DepthsBelow/DepthsBelow/Soldier.cs create mode 100644 DepthsBelow/DepthsBelow/TransformComponent.cs create mode 100644 DepthsBelow/DepthsBelowContent/images/soldier.bmp diff --git a/DepthsBelow/DepthsBelow/Component.cs b/DepthsBelow/DepthsBelow/Component.cs new file mode 100644 index 0000000..5b8c8e7 --- /dev/null +++ b/DepthsBelow/DepthsBelow/Component.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace DepthsBelow +{ + public class Component + { + public Entity Parent; + + public Component(Entity parent) + { + Parent = parent; + } + } +} diff --git a/DepthsBelow/DepthsBelow/DepthsBelow.csproj b/DepthsBelow/DepthsBelow/DepthsBelow.csproj index 11d7e54..bdc09b7 100644 --- a/DepthsBelow/DepthsBelow/DepthsBelow.csproj +++ b/DepthsBelow/DepthsBelow/DepthsBelow.csproj @@ -18,6 +18,7 @@ Game Game.ico GameThumbnail.png + false publish\ true Disk @@ -28,10 +29,10 @@ false false true - 0 + 1 1.0.0.%2a - false false + true true @@ -59,6 +60,18 @@ x86 true + + ECE66DEF071576E8D2F7D57232C0569623E3E2DF + + + DepthsBelow_TemporaryKey.pfx + + + true + + + true + False @@ -107,9 +120,14 @@ + + + + + @@ -148,6 +166,9 @@ true + + +