Exemple #1
0
    public void LoadSystem()
    {
        ClearProductions();
        InstantiateSystem();
        parametricSystem.name = SystemName;
        parametricSystem.ImportProductions();

        foreach (KeyValuePair <char, List <SystemModule> > kvp in parametricSystem.Productions)
        {
            AddProduction();
            currentProduction.currentLHS.value = Production.SymbolIndexConverter(kvp.Key);
            for (int i = kvp.Value.Count; i > 0; i--)
            {
                SystemModule sm = kvp.Value[i - 1];
                currentProduction.AppendModule(sm);
            }
        }
    }