Elin Decompiled Documentation EA 23.288 Nightly
Loading...
Searching...
No Matches
BackerContent.cs
Go to the documentation of this file.
1public class BackerContent : EClass
2{
3 public static int indexTree;
4
5 public static int indexRemain;
6
7 public static int indexLantern;
8
9 public static int indexSnail;
10
11 public static int indexFollower;
12
13 public static int indexSister;
14
15 public static string ConvertName(string s)
16 {
17 return s.Replace("『", "「");
18 }
19
20 public static void GakiConvert(ref string text, string idLang = "zako")
21 {
22 if (text.IsEmpty())
23 {
24 return;
25 }
26 if (!text.StartsWith("("))
27 {
28 text = idLang.lang().Split(',').RandomItem() + " (" + text + ")";
29 }
30 else
31 {
32 switch (idLang)
33 {
34 case "mokyu":
35 case "babu":
36 case "mimu":
37 text = idLang.lang().Split(',').RandomItem() + " " + text;
38 break;
39 }
40 }
41 text = text.Replace("。)", ")");
42 if (text.EndsWith("」"))
43 {
44 text = text.Substring(0, text.Length - 1);
45 }
46 }
47}
static int indexTree
Definition: BackerContent.cs:3
static int indexFollower
static int indexSister
static int indexSnail
Definition: BackerContent.cs:9
static int indexRemain
Definition: BackerContent.cs:5
static int indexLantern
Definition: BackerContent.cs:7
static string ConvertName(string s)
static void GakiConvert(ref string text, string idLang="zako")
Definition: EClass.cs:6