예제 #1
0
        public Game1(ISceneLoader sceneLoader, SceneID initialScene)
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = 256 * 4;
            graphics.PreferredBackBufferHeight = 192 * 4;
            graphics.IsFullScreen = false;
            Content.RootDirectory = "Content";

            engine             = new XNAGameEngine();
            engine.SceneLoader = sceneLoader;

            InitialScene = initialScene;
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            SceneID other = obj as SceneID;

            return(other != null && other.MapNumber == MapNumber && other.Name.Equals(Name));
        }
예제 #3
0
 public ConditionTransition(ICondition condition, SceneID scene)
 {
     Condition = condition;
     Scene     = scene;
 }
예제 #4
0
 protected Scene(SceneID id)
 {
     ID = id;
 }