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."); }
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); }
public Board(IGameInitializer gameInitializer) { Pieces = gameInitializer.Initialize(); }
private void Start() { IGameInitializer gameInitializer = GetComponentInChildren <IGameInitializer>(); gameInitializer?.Initialize(); }
private static bool GameInitializeMapper(ReceiverList<IGameInitializer, int> list, IGameInitializer receiver, int parameter) { return receiver.Initialize(); }