阅读背景:

c#访问类'方法中的struct成员

来源:互联网 

i'm trying to write a simple game. I want to design a "movement controller" object, that would handle move instructions from the engine. I would also like for this object to expose a method, that would check its state and return true/false depending if it's ready to move or not. The state will be saved as group of boolean variables. Since there is a lot of them, I decided to group them together in a new struct called "flags". This is how it looks like more or less:i'm trying to write a simple game. I want to de




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: