public EngineStateLevelSave(Engine engine, EngineStateLevelEditor state, EngineStateInterface successState, EngineStateInterface cancelState) { engine_ = engine; state_ = state; successState_ = successState; cancelState_ = cancelState; returnState_ = this; mainMessage_ = FontMap.getInstance().getFont(MESSAGE_FONT); StorageDevice sd = Settings.getInstance().StorageDevice_; if (sd == null) { #if !XBOX saveDialog(); #endif } }
/// <summary> /// A copy constructor /// </summary> /// <param name="gFont">The GameFont to copy</param> public GameFont(GameFont gFont) { spriteBatch_ = gFont.spriteBatch_; font_ = gFont.font_; }
/// <summary> /// Private constructor for singleton pattern. /// </summary> private FPSMonitor() { font = FontMap.getInstance().getFont(FontEnum.Kootenay14); }