7 Replies - 5264 Views - Last Post: 07 April 2014 - 11:21 AM

#1 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2531
  • View blog
  • Posts: 4,631
  • Joined: 24-September 10

Dic Xna Entity Framework - Example

Post icon  Posted 07 January 2014 - 07:51 PM

*
POPULAR

So, in another thread (here) I said I'd put together an example of how an Entity/GameObject framework for Xna could be put together. And that I'd also do a little write up to go with it describing how the design works and was put together.

I also said it'd take me a little while to do so with my schedule.

So I got some of the code together, created a github repo for it, and did the initial commit of the code. I'm sharing it here for y'all to see and in anticipation of a write up to go along with it. Also to establish a thread in which I'll talk about it, and to get some initial feedback.

The github can be found here:
https://github.com/l...a.framework.git

It is public and you can clone it all you want.

Note the solution is configured to be opened in Visual Studio 2012 with MonoGame 3.0.1

Just by changing out the references you should be able to use it in Visual Studio 2010 with Xna. If anyone wants to create the solution file for it we can make it part of the project so they can be opened either way.

Also the GameEntityTutorial project, out of the 2 projects, can be ignored for this moment. It's the Dic.Xna.Framework project where anything is actually going on. Running the project won't result in much of anything either except for some printouts to the console where I was testing random things.



As this article grows, I'll be updating this OP with all new entries, but also including the part upddated with in their own post. This way the new post brings the thread to the top, but you don't have to dig through the thread to find each section.


Introduction
Spoiler



Part 1 - Entity Framework
Spoiler


Part 1.1 - Entity class breakdown
Spoiler

This post has been edited by lordofduct: 25 January 2014 - 03:42 PM


Is This A Good Question/Topic? 6
  • +

Replies To: Dic Xna Entity Framework - Example

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8937
  • View blog
  • Posts: 33,502
  • Joined: 12-June 08

Re: Dic Xna Entity Framework - Example

Posted 07 January 2014 - 09:00 PM

Tres cool!

Spoiler

Was This Post Helpful? 0
  • +
  • -

#3 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2531
  • View blog
  • Posts: 4,631
  • Joined: 24-September 10

Re: Dic Xna Entity Framework - Example

Posted 09 January 2014 - 10:53 PM

1/10/14 12:52AM - updated OP to include first part of the write up

Part 1 - Entity Framework
Spoiler

This post has been edited by lordofduct: 25 January 2014 - 03:27 PM

Was This Post Helpful? 1
  • +
  • -

#4 BBeck  Icon User is offline

  • Here to help.
  • member icon


Reputation: 560
  • View blog
  • Posts: 1,262
  • Joined: 24-April 12

Re: Dic Xna Entity Framework - Example

Posted 11 January 2014 - 09:43 AM

This is some really cool stuff. We need to pin this or it needs to be in a tutorial or something so that it's available from now on as opposed to getting buried deep in the pile of threads.


Looking through your code, I realize how much I yet have to learn about C# and OOP.

I'm currently playing around with Unity, so I had been already thinking of trying to figure out how to implement something like this.

If you were to write a book on this, I would buy it.
Was This Post Helpful? 0
  • +
  • -

#5 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2531
  • View blog
  • Posts: 4,631
  • Joined: 24-September 10

Re: Dic Xna Entity Framework - Example

Posted 14 January 2014 - 02:31 PM

Just letting y'all know, I did a gamejam over the weekend, so I didn't get to the next part. It should be coming some time this week. I'll be covering the EntityManagerComponent, Entity, and EntityComponent classes in detail.

After that I'll be getting to rendering.

Not sure where after that. I'm thinking serialization of these things.

From there I probably won't do much more, unless I get a bug up my ass and I'm bored.
Was This Post Helpful? 0
  • +
  • -

#6 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2531
  • View blog
  • Posts: 4,631
  • Joined: 24-September 10

Re: Dic Xna Entity Framework - Example

Posted 25 January 2014 - 03:27 PM

1/25/14 12:52AM - updated OP with Part 1.1

Part 1.1 - Entity class breakdown
Spoiler

This post has been edited by lordofduct: 25 January 2014 - 03:42 PM

Was This Post Helpful? 0
  • +
  • -

#7 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2531
  • View blog
  • Posts: 4,631
  • Joined: 24-September 10

Re: Dic Xna Entity Framework - Example

Posted 28 January 2014 - 10:10 PM

Started writing part 1.2, where I get into the breakdown of the EntityManagerComponent. Ended up having to do a couple changes to Entity, EntityComponentCollection, and EntityManagerComponent (found a flaw that impacts threading... threading is FUN! ::grumbles:: )/>. The changes will be committed some time this week, part 1.1 will be slightly modified to meet the new code (figure I'd update it since it's so close in time, the changes are minor anyways), and I'll be uploading part 1.2.

This post has been edited by lordofduct: 28 January 2014 - 10:11 PM

Was This Post Helpful? 0
  • +
  • -

#8 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon


Reputation: 2531
  • View blog
  • Posts: 4,631
  • Joined: 24-September 10

Re: Dic Xna Entity Framework - Example

Posted 07 April 2014 - 11:21 AM

So I got a message from BBeck telling me this got pinned. And I wanted to stop by and say that I haven't given up on this. I just have been super busy with 100 hour work weeks this last month. I will be picking this up after we pass this milestone at my day job.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1