Example #1
0
        public ReligionGroupParser AddReligionGroup(String name)
        {
            ScriptScope scope = new ScriptScope();
            scope.Name = name;
            
            script.Root.Add(scope);
            
            ReligionGroupParser r = new ReligionGroupParser(scope);

            r.Init();
            GroupMap[name] = r;
            AllReligionGroups.Add(r);
            return r;
        }
Example #2
0
        public ReligionGroupParser AddReligionGroup(String name)
        {
            ScriptScope scope = new ScriptScope();

            scope.Name = name;

            script.Root.Add(scope);

            ReligionGroupParser r = new ReligionGroupParser(scope);

            r.Init();
            GroupMap[name] = r;
            AllReligionGroups.Add(r);
            return(r);
        }
Example #3
0
        public ReligionGroupParser AddReligionGroup(String name)
        {
            ScriptScope scope = new ScriptScope
            {
                Name = name
            };

            script.Root.Add(scope);

            ReligionGroupParser r = new ReligionGroupParser(scope);

            r.Init();
            GroupMap[name] = r;
            AllReligionGroups.Add(r);

            ScripterTriggerManager.instance.AddTrigger(r);
            return(r);
        }
Example #4
0
        public void Init()
        {
            LanguageManager.instance.Add("urtru", StarNames.Generate(Rand.Next(1000000)));

            Script s = new Script();

            script = s;
            s.Name = Globals.ModDir + "common\\religions\\00_religions.txt";
            s.Root = new ScriptScope();

            ReligionGroupParser r = AddReligionGroup("urtru");

            r.Init();

            var firstReligion = r.AddReligion("urtru");

            firstReligion.CreateNewReligion();

            AllReligionGroups.Add(r);
        }
Example #5
0
        public void Init()
        {
            LanguageManager.instance.Add("norse", StarNames.Generate(Rand.Next(1000000)));
            LanguageManager.instance.Add("pagan", StarNames.Generate(Rand.Next(1000000)));
            LanguageManager.instance.Add("christian", StarNames.Generate(Rand.Next(1000000)));

            Script s = new Script();

            script = s;
            s.Name = Globals.ModDir + "common\\religions\\00_religions.txt";
            s.Root = new ScriptScope();
            ReligionGroupParser r = AddReligionGroup("pagan");

            r.Init();
            var pagan = r.AddReligion("pagan");

            pagan.CreateRandomReligion(null);

            AllReligionGroups.Add(r);
        }