Ah, case sensitivity. Love it and hate it.
I have a feeling that was not the problem.
Looking at my roguelike, I just realized one reason that the program might have such a long and stuttering lead time. It's not so much C#'s fault (aside from the Console drawing), as that a left over bit of code from my original map generator implementation meant that when a new map was initialized at the start of the program, it wasn't generating a map. It was generating
1239 of them. While there is a performance improvement, I'm actually quite impressed at how little speed difference there was.
Okay, real issue this time, for anyone who knows C# standard objects. I'm using the generic
LinkedList<> construction, and I want to be able to call a specific object by its position in the list. In lieu of an included method to do that (as I can't seem to find one), I'm trying the brute force way.
MobObject[] mobs = new MobObject[mobList.Count];
mobList.CopyTo(mobs);
return mobs[mobNumber].GetLocation();
Compiling this throws an error for the second line: "No overload for method 'CopyTo' takes 1 arguments (CS1501)". Even though I have the exact same sort of construction (with an array of ints instead of objects) elsewhere in the code and it works fine. (And yes, mobList is already initialized elsewhere in the code, before it hits this.) What am I not doing right here? And better question, is there a simpler way to do this that I haven't found in MSDN?
Nevermind, screw it. I was actually using the List<> class before, not LinkedList<>. Holy crap, why is that even a concern? Still, List<> doesn't seem to generate its own numbering either, so I'm still using the brute force array-conversion method. There's probably a better way to do this.