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); }
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); }