Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SourceManager Class Reference
Inheritance diagram for SourceManager:
EMono

Public Member Functions

void InitLang ()
 
void OnChangeLang ()
 
void Init ()
 
void ExportSourceTexts (string path)
 
void UpdateSourceTexts (string path)
 
void ImportSourceTexts ()
 
void ValidateLang ()
 

Public Attributes

LangGeneral langGeneral
 
LangList langList
 
LangGame langGame
 
LangWord langWord
 
LangNote langNote
 
SourceCard cards = new SourceCard()
 
SourceChara charas
 
SourceCharaText charaText
 
SourceTactics tactics
 
SourcePerson persons
 
SourceThing things
 
SourceElement elements
 
SourceCalc calc
 
SourceCheck checks
 
SourceRace races
 
SourceCategory categories
 
SourceMaterial materials
 
SourceSpawnList spawnLists
 
SourceBlock blocks
 
SourceFloor floors
 
SourceCellEffect cellEffects
 
SourceObj objs
 
SourceFaction factions
 
SourceReligion religions
 
SourceJob jobs
 
SourceHobby hobbies
 
SourceQuest quests
 
SourceStat stats
 
SourceArea areas
 
SourceZone zones
 
SourceZoneAffix zoneAffixes
 
SourceResearch researches
 
SourceHomeResource homeResources
 
SourceCollectible collectibles
 
SourceGlobalTile globalTiles
 
SourceThingV thingV
 
SourceFood foods
 
SourceRecipe recipes
 
SourceBacker backers
 
SourceAsset asset
 
SourceKeyItem keyItems
 
bool initialized
 

Properties

ExcelData dataGodTalk [get]
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Private Attributes

ExcelData _dataGodTalk
 
List< SourceDatalist = new List<SourceData>()
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 

Detailed Description

Definition at line 4 of file SourceManager.cs.

Member Function Documentation

◆ ExportSourceTexts()

void SourceManager.ExportSourceTexts ( string  path)
inline

Definition at line 175 of file SourceManager.cs.

176 {
177 foreach (SourceData item in list)
178 {
179 item.ExportTexts(path);
180 }
181 }
List< SourceData > list

References item, and list.

Referenced by ModManager.ParseExtra().

◆ ImportSourceTexts()

void SourceManager.ImportSourceTexts ( )
inline

Definition at line 191 of file SourceManager.cs.

192 {
193 foreach (SourceData item in list)
194 {
195 if (item is SourceThingV)
196 {
197 things.ImportTexts(item.nameSheet);
198 }
199 else
200 {
201 item.ImportTexts();
202 }
203 }
204 }
SourceThing things

References item, list, and things.

Referenced by Core.Init(), and CoreDebug.UpdateAlways().

◆ Init()

void SourceManager.Init ( )
inline

Definition at line 115 of file SourceManager.cs.

116 {
117 if (initialized)
118 {
119 return;
120 }
121 initialized = true;
122 list.Clear();
123 FieldInfo[] fields = GetType().GetFields();
124 foreach (FieldInfo fieldInfo in fields)
125 {
126 if (typeof(SourceData).IsAssignableFrom(fieldInfo.FieldType))
127 {
128 list.Add((SourceData)fieldInfo.GetValue(this));
129 }
130 }
131 elements.Init();
132 materials.Init();
133 charas.Init();
134 things.Init();
135 thingV.Init();
136 foods.Init();
137 cards.Init();
138 checks.Init();
139 races.Init();
140 persons.Init();
141 categories.Init();
142 spawnLists.Init();
143 religions.Init();
144 factions.Init();
145 jobs.Init();
146 hobbies.Init();
147 floors.Init();
148 blocks.Init();
149 cellEffects.Init();
150 objs.Init();
151 stats.Init();
152 areas.Init();
153 zones.Init();
154 zoneAffixes.Init();
155 researches.Init();
156 homeResources.Init();
157 globalTiles.Init();
159 quests.Init();
160 charaText.Init();
161 calc.Init();
162 recipes.Init();
163 backers.Init();
164 tactics.Init();
165 keyItems.Init();
166 ACT.Init();
167 TimeTable.Init();
169 for (int j = 910; j < 927; j++)
170 {
172 }
173 }
Definition: ACT.cs:6
static void Init()
Definition: ACT.cs:25
Definition: EMono.cs:4
static SourceManager sources
Definition: EMono.cs:41
static List< SourceElement.Row > ListAttackElements
Definition: ELEMENT.cs:260
void Init()
Definition: SourceCard.cs:14
void OnAfterInit()
Definition: SourceFloor.cs:169
SourceFaction factions
SourceMaterial materials
SourceRace races
SourceStat stats
SourceKeyItem keyItems
SourceResearch researches
SourceCalc calc
SourceHomeResource homeResources
SourceCard cards
SourceThingV thingV
SourceObj objs
SourceZone zones
SourceHobby hobbies
SourceFood foods
SourceSpawnList spawnLists
SourceGlobalTile globalTiles
SourceCheck checks
SourceCellEffect cellEffects
SourceBlock blocks
SourcePerson persons
SourceRecipe recipes
SourceArea areas
SourceCharaText charaText
SourceZoneAffix zoneAffixes
SourceBacker backers
SourceCategory categories
SourceElement elements
SourceChara charas
SourceQuest quests
SourceJob jobs
SourceReligion religions
SourceTactics tactics
SourceFloor floors
static void Init()
Definition: TimeTable.cs:19

References areas, backers, blocks, calc, cards, categories, cellEffects, charas, charaText, checks, elements, factions, floors, foods, globalTiles, hobbies, homeResources, ACT.Init(), SourceCard.Init(), TimeTable.Init(), initialized, jobs, keyItems, list, Element.ListAttackElements, materials, objs, SourceFloor.OnAfterInit(), persons, quests, races, recipes, religions, researches, EMono.sources, spawnLists, stats, tactics, things, thingV, zoneAffixes, and zones.

Referenced by ModManager.ParseExtra(), and Core.StartCase().

◆ InitLang()

void SourceManager.InitLang ( )
inline

Definition at line 96 of file SourceManager.cs.

97 {
98 langGeneral.Init();
99 langGame.Init();
100 langList.Init();
101 langNote.Init();
102 langWord.Init();
103 Lang.General = langGeneral;
104 Lang.Game = langGame;
105 Lang.List = langList;
106 Lang.Note = langNote;
107 WordGen.source = langWord;
108 }
LangGeneral langGeneral
Definition: SourceManager.cs:6
LangGame langGame
LangWord langWord
LangNote langNote
LangList langList
Definition: SourceManager.cs:8

References langGame, langGeneral, langList, langNote, and langWord.

Referenced by Core.SetReferences().

◆ OnChangeLang()

void SourceManager.OnChangeLang ( )
inline

Definition at line 110 of file SourceManager.cs.

111 {
112 _dataGodTalk = null;
113 }
ExcelData _dataGodTalk

References _dataGodTalk.

Referenced by Core.SetLang().

◆ UpdateSourceTexts()

void SourceManager.UpdateSourceTexts ( string  path)
inline

Definition at line 183 of file SourceManager.cs.

184 {
185 foreach (SourceData item in list)
186 {
187 item.ExportTexts(path, update: true);
188 }
189 }

References item, and list.

Referenced by ModManager.ParseExtra().

◆ ValidateLang()

void SourceManager.ValidateLang ( )
inline

Definition at line 206 of file SourceManager.cs.

207 {
208 Log.system = "";
209 foreach (SourceData item in list)
210 {
211 item.ValidateLang();
212 }
213 string text = Lang.setting.dir + "validation.txt";
214 IO.SaveText(text, Log.system);
215 Util.Run(text);
216 }
Definition: IO.cs:11
static void SaveText(string path, string text)
Definition: IO.cs:104
Definition: Log.cs:4
static string system
Definition: Log.cs:5
Definition: Util.cs:10
static void Run(string itemPath)
Definition: Util.cs:242

References item, list, Log.system, and Util.

Member Data Documentation

◆ _dataGodTalk

ExcelData SourceManager._dataGodTalk
private

Definition at line 88 of file SourceManager.cs.

Referenced by OnChangeLang().

◆ areas

SourceArea SourceManager.areas

Definition at line 62 of file SourceManager.cs.

Referenced by Init(), and BuildMenu.RefreshCategoryArea().

◆ asset

SourceAsset SourceManager.asset

Definition at line 84 of file SourceManager.cs.

Referenced by SourceThingV.RestorePref().

◆ backers

◆ blocks

◆ calc

SourceCalc SourceManager.calc

Definition at line 30 of file SourceManager.cs.

Referenced by Dice.Create(), ActEffect.DamageEle(), and Init().

◆ cards

◆ categories

◆ cellEffects

SourceCellEffect SourceManager.cellEffects

Definition at line 46 of file SourceManager.cs.

Referenced by RecipeManager.BuildList(), and Init().

◆ charas

◆ charaText

SourceCharaText SourceManager.charaText

Definition at line 20 of file SourceManager.cs.

Referenced by Chara.GetTopicText(), and Init().

◆ checks

SourceCheck SourceManager.checks

Definition at line 32 of file SourceManager.cs.

Referenced by Init().

◆ collectibles

◆ elements

SourceElement SourceManager.elements

Definition at line 28 of file SourceManager.cs.

Referenced by Element._WriteNote(), Chara.AddCondition(), Chara.AddCooldown(), FactionBranch.AddFeat(), ElementContainer.AddNote(), PolicyManager.AddPolicy(), CraftUtil.AddRandomFoodEnc(), SourceElement.AddRow(), Card.AddRune(), DNA.Apply(), Feat.Apply(), DomainManager.Build(), CharaAbility.BuildRandomAbilityList(), Element.CheckLevelBonus(), ElementContainerCard.CheckSkillActions(), RecipeManager.ComeUpWithRecipe(), ACT.Create(), Element.Create(), TraitAbility.CreateAct(), ThingGen.CreateSpellbook(), FactionBranch.DailyOutcome(), Player.DreamSpell(), FactionBranch.Evalue(), Card.Evalue(), Zone.Evalue(), SpawnList.Filter(), Biography.Generate(), Element.Get(), Chara.GetBuffStats(), ElementContainer.GetElement(), Core.GetElement(), BaseCondition.GetElementSource(), Thing.GetEnchant(), Religion.GetFeat(), Element.GetId(), SourceElement.Row.GetName(), Element.GetName(), ElementContainer.GetOrCreateElement(), Element.GetRandomElement(), BaseTaskHarvest.GetReqEle(), Element.GetSortVal(), Element.GetSource(), BaseCondition.GetSpriteColor(), ConBuffStats.GetText(), Check.GetText(), Religion.GetTextBenefit(), ElementContainer.Has(), Card.HasElement(), HotItemAct.HotItemAct(), ACT.Init(), Init(), SourceElement.Row.IsEncAppliable(), Chara.ListAvailabeFeats(), Zone.ListLandFeats(), Card.MakeFoodFrom(), Thing.MatchEncSearch(), Card.ModExp(), Chara.ModTempElement(), Chara.MutateRandom(), SourceElement.OnAfterImportData(), SourceThingV.OnAfterImportData(), Trait.OnBarter(), FactionBranch.OnClaimZone(), Chara.OnCreate(), TraitBookSkill.OnCreate(), TraitMod.OnCreate(), ElementContainerCard.OnLearn(), ElementContainerZone.OnLearn(), ElementContainerCard.OnTrain(), RaceBonus.OnWriteNote(), ResearchPlan.ParseReward(), AttackProcess.Perform(), ConBuffStats.PlayEffect(), Card.PlayEffect(), FoodEffect.Proc(), CoreDebug.QuickStart(), CharaAbility.Refresh(), WindowCharaMini.Refresh(), Chara.RefreshFaithElement(), WindowChara.RefreshInfo(), WindowChara.RefreshSkill(), Chara.RefreshSpeed(), Card.ResistLvFrom(), ElementSelecter.Select(), Player.SelectDomain(), ElementContainer.SetBase(), CoreDebug.SetElement(), Chara.SetMainElement(), TraitAbility.SetName(), TraitAmmoTalisman.SetName(), TraitBookSkill.SetName(), BaseTaskHarvest.SetTarget(), ConDisease.Tick(), Chara.TryAbsorbRod(), TaskHarvest.TryGetAct(), Chara.TryUpgrade(), GoalCombat.TryUseAbility(), BaseListPeople.WriteHobbies(), Element.BonusInfo.WriteNote(), and Thing.WriteNote().

◆ factions

SourceFaction SourceManager.factions

Definition at line 50 of file SourceManager.cs.

Referenced by RankedZone.GetFactionName(), Init(), and FactionManager.OnCreateGame().

◆ floors

◆ foods

SourceFood SourceManager.foods

Definition at line 78 of file SourceManager.cs.

Referenced by Init(), and SourcePrefInspector.ValidatePrefs().

◆ globalTiles

SourceGlobalTile SourceManager.globalTiles

◆ hobbies

SourceHobby SourceManager.hobbies

Definition at line 56 of file SourceManager.cs.

Referenced by Init(), and Chara.RerollHobby().

◆ homeResources

SourceHomeResource SourceManager.homeResources

Definition at line 70 of file SourceManager.cs.

Referenced by Init().

◆ initialized

bool SourceManager.initialized

Definition at line 92 of file SourceManager.cs.

Referenced by Init().

◆ jobs

◆ keyItems

◆ langGame

LangGame SourceManager.langGame

Definition at line 10 of file SourceManager.cs.

Referenced by Msg.GetGameText(), InitLang(), and FactionBranch.Log().

◆ langGeneral

LangGeneral SourceManager.langGeneral

Definition at line 6 of file SourceManager.cs.

Referenced by InitLang(), and Core.SetLang().

◆ langList

LangList SourceManager.langList

Definition at line 8 of file SourceManager.cs.

Referenced by InitLang().

◆ langNote

LangNote SourceManager.langNote

Definition at line 14 of file SourceManager.cs.

Referenced by InitLang().

◆ langWord

LangWord SourceManager.langWord

Definition at line 12 of file SourceManager.cs.

Referenced by InitLang(), and Biography.StrBio().

◆ list

List<SourceData> SourceManager.list = new List<SourceData>()
private

◆ materials

◆ objs

◆ persons

SourcePerson SourceManager.persons

Definition at line 24 of file SourceManager.cs.

Referenced by DramaSequence.GetActor(), and Init().

◆ quests

◆ races

◆ recipes

SourceRecipe SourceManager.recipes

◆ religions

SourceReligion SourceManager.religions

Definition at line 52 of file SourceManager.cs.

Referenced by Init(), Trait.OfferProcess(), and Chara.RefreshFaithElement().

◆ researches

◆ spawnLists

◆ stats

SourceStat SourceManager.stats

◆ tactics

SourceTactics SourceManager.tactics

◆ things

◆ thingV

SourceThingV SourceManager.thingV

Definition at line 76 of file SourceManager.cs.

Referenced by Init(), and SourcePrefInspector.ValidatePrefs().

◆ zoneAffixes

SourceZoneAffix SourceManager.zoneAffixes

◆ zones

Property Documentation

◆ dataGodTalk

ExcelData SourceManager.dataGodTalk
get

Definition at line 94 of file SourceManager.cs.

Referenced by Religion.GetGodTalk().


The documentation for this class was generated from the following file: