Esempio n. 1
0
        static void Main(string[] args)
        {
            _loger.Debug("Application loading...");
            System.AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionTrapper;
            var container = new UnityContainer();

            UnityMapping.RegisterElements(container);
            IInputOutput     io = container.Resolve <IInputOutput>(new ParameterOverride("path", _inputPath));
            IGameInitializer gameInitializer = container.Resolve <IGameInitializer>();

            gameInitializer.Initialize();
            _loger.Debug("Application loaded.");
        }
Esempio n. 2
0
        public XnaGame(IGameInitializer initializer)
        {
            Content.RootDirectory = "Content";

            Instance = this;

            Initializer = initializer;

            Initializer.Initialize();

            // コンストラクタ後にGraphicsDeviceが生成されるので、
            // GraphicsDeviceManagerはInitializeの前にコンストラクタで作ること
            graphics = new GraphicsDeviceManager(this);

            // 解像度等の設定もInitializeの前にやっておく
            InitializeGraphics();

            DebugSampleAccessor.CreateInstance(this);
        }
Esempio n. 3
0
 public Board(IGameInitializer gameInitializer)
 {
     Pieces = gameInitializer.Initialize();
 }
Esempio n. 4
0
    private void Start()
    {
        IGameInitializer gameInitializer = GetComponentInChildren <IGameInitializer>();

        gameInitializer?.Initialize();
    }
Esempio n. 5
0
 private static bool GameInitializeMapper(ReceiverList<IGameInitializer, int> list, IGameInitializer receiver, int parameter)
 {
     return receiver.Initialize();
 }