2using System.Collections.Generic;
6[JsonObject(MemberSerialization.OptOut)]
40 public string BioId {
get;
private set; }
44 var (fileInfo, eMod) = PackageIterator.GetFilesEx(
"Data/bio_" + biographyId +
".json").LastOrDefault();
55 ContentId =
"Biography/" + charaId.IsEmpty(biographyId),
65 if (customBiographyContent !=
null)
67 base.File = customBiographyContent.
File;
68 base.LastModified = DateTime.MinValue;
89 if (!langWord.ContainsKey(-100))
92 Dictionary<int,
LangWord.
Row> dictionary = langWord;
98 dictionary[-100] = obj;
99 row.name = (row.name_JP = (row.name_L =
""));
112 bio.idDad = SetTempWord(
dad, 2);
117 bio.idMom = SetTempWord(
mom, 3);
128 bio.idHobby = element;
131 int SetTempWord(
string text,
int tempIndex)
134 if (num == 0 || !langWord.ContainsKey(num))
146 row2.name = (row2.name_JP = (row2.name_L = text));
160 dad = customBiographyContent.
dad;
161 mom = customBiographyContent.
mom;
static int GetElement(string id)
void RefreshCharaBio(Chara chara)
const int FallbackWordKey
static CustomBiographyContent CreateFromId(string biographyId, ModPackage owner=null, string charaId=null)
override void LoadContent()
override void OnSetLang(string lang)
static SourceManager sources
Dictionary< string, CardRow > map