• Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About stampede247

  • Rank
  1. Hey guys I'm new to the forum so sorry if this is a re-post or anything like that. So I was working on trying to make a console window for my games. I'm working in XNA but that shouldnt matter much for what I'm doing. Basically what I want is to make a way that you can edit and check on variables in game by typing stuff into this console like "get variable1" or "variable1 = 10". So I was wondering if there was a way to process this string name "variable1" into a reference to variable1 in my code without specifically going 'if (name == "variable1") { return variable1; }' because I want to make the console as versatile as possible. Any ideas on what to do? Let me know if you need more info.Thanks in advance! p.s. Oh also if there is a way to get a reference this way that also includes a class name or namespace for example: "StaticClass.varaible1 = 10". If not I can work around that.