Original Post
Hey
So, in this chapter we covered basic input via devices. I was wandering, is it possible to use files (e.g a .txt file) that hold textual content, and then extract that content and use it in our game? For example, if we have an intelligent agent that takes random actions depending on the situation, would it be possible to create a file that contains names or ID of those actions (of course there would be a code for that action). I think that using these file(s) would be "cleaner" to trigger these actions (randomly or sequentially) then using endless if-then or switch-case block's. This is fairly simple in C#, but can anyone tell me how to do it in XNA.
So, in this chapter we covered basic input via devices. I was wandering, is it possible to use files (e.g a .txt file) that hold textual content, and then extract that content and use it in our game? For example, if we have an intelligent agent that takes random actions depending on the situation, would it be possible to create a file that contains names or ID of those actions (of course there would be a code for that action). I think that using these file(s) would be "cleaner" to trigger these actions (randomly or sequentially) then using endless if-then or switch-case block's. This is fairly simple in C#, but can anyone tell me how to do it in XNA.