Skip to content

Instantly share code, notes, and snippets.

@wilfrem
Created December 4, 2013 02:45
Show Gist options
  • Save wilfrem/7781481 to your computer and use it in GitHub Desktop.
Save wilfrem/7781481 to your computer and use it in GitHub Desktop.
俺のシーン管理システムが火を噴くぜ!その2
using RailloadCity.Core.Infrastructures.DependencyInjections;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RailloadCity.Core.Infrastructures.Scenes
{
/// <summary>
/// シーンの基底クラス
/// </summary>
public abstract class SceneBase
{
public IContainer Container { get; private set; }
public SceneBase(IContainer container)
{
Container = container;
}
/// <summary>
/// DIコンテナへの登録
/// </summary>
public abstract void RegisterContainer();
/// <summary>
/// コントローラー等のクラスの準備
/// </summary>
public abstract void Initialize();
/// <summary>
/// 更新時の処理
/// </summary>
public abstract void Update();
/// <summary>
/// シーン終了時の処理
/// </summary>
public virtual void SceneEnd() { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment