Esempio n. 1
0
        void Start()
        {
            // init runtime
            QuantumRunner.Init();

            // init database
            UnityDB.Init();
        }
Esempio n. 2
0
    public QuantumGame(Quantum.RuntimeConfig runtimeConfig)
    {
        // init debug
        QuantumRunner.Init();

        // initialize db
        UnityDB.Init();

        _runtimeConfig    = RuntimeConfig = runtimeConfig;
        _simulationConfig = SimulationConfig = SimulationConfigAsset.Instance.Configuration;
        _systems          = Quantum.SystemSetup.CreateSystems(_runtimeConfig, _simulationConfig);

        IsReplay         = runtimeConfig.GameMode == DeterministicGameMode.Replay;
        IsReplayFinished = false;

        // set system runtime indices
        for (Int32 i = 0; i < _systems.Length; ++i)
        {
            _systems[i].RuntimeIndex = i;
        }
    }