BrownBot Logo BrownBot Head

My First Generics

11:27 pm Filed under: C#

I started laying out some code to split off the collectible objects and enemies in Ride the fury tonight, I finally found a use for a some generic types and methods.

I modified my level enemy loading code to accept any object type (what I’m calling an object type is actually an enum listing the names of the various sub types), it came together really nice and quick.

I was all set to past the code up here and decided to try and start pasting to code samples up here in a nice colured format… so then I spent the next hour (more time than it took me to write the code I wanted to past in the first place) to NOT get the CopySourceAsHtml add in to work!

So I’ve cracked the shits with it all and you don’t get to see the code… Gee I love PC’s!

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Powered by WordPress