Artemis.Engine.ArtemisEngine.Setup C# (CSharp) Метод

Setup() публичный статический Метод

Setup the engine. This loads the game constants from the given constants file and initializes the user options. NOTE: This does NOT actually load the user options. That happens after calling Begin.
public static Setup ( string constantsFileName, System.Action setupAction ) : void
constantsFileName string
setupAction System.Action
Результат void
        public static void Setup(string constantsFileName, Action setupAction)
        {
            GameConstants.ReadFromFile(constantsFileName);
            ConvertUnits.SetDisplayUnitToSimUnitRatio(GameConstants.PixelsPerSimUnit);

            AddOptions();
            setupAction();

            SetupCalled = true;
        }

Same methods

ArtemisEngine::Setup ( string constantsFileName, string optionFileName, System.Action setupAction ) : void