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; }
public override bool Equals(object obj) { SceneID other = obj as SceneID; return(other != null && other.MapNumber == MapNumber && other.Name.Equals(Name)); }
public ConditionTransition(ICondition condition, SceneID scene) { Condition = condition; Scene = scene; }
protected Scene(SceneID id) { ID = id; }