initial commit

This commit is contained in:
Arneth
2022-01-20 17:32:17 -05:00
parent f570a902d9
commit 07448bc23d
446 changed files with 53095 additions and 60 deletions
@@ -0,0 +1,55 @@
using System;
namespace Qoo.Message
{
// Token: 0x020000A8 RID: 168
public class BACKLOG_ITEM
{
// Token: 0x060004EE RID: 1262 RVA: 0x000125B4 File Offset: 0x000107B4
public BACKLOG_ITEM(int nKs, int nLabel, int nPos, string voice_, string name_, string txt_)
{
this.KsNo = nKs;
this.LabelNo = nLabel;
this.Pos = nPos;
this.Voice = voice_;
this.Name = name_;
this.Txt = txt_;
}
// Token: 0x170000B3 RID: 179
// (get) Token: 0x060004EF RID: 1263 RVA: 0x000125F4 File Offset: 0x000107F4
// (set) Token: 0x060004F0 RID: 1264 RVA: 0x000125FC File Offset: 0x000107FC
public int KsNo { get; set; }
// Token: 0x170000B4 RID: 180
// (get) Token: 0x060004F1 RID: 1265 RVA: 0x00012608 File Offset: 0x00010808
// (set) Token: 0x060004F2 RID: 1266 RVA: 0x00012610 File Offset: 0x00010810
public int LabelNo { get; set; }
// Token: 0x170000B5 RID: 181
// (get) Token: 0x060004F3 RID: 1267 RVA: 0x0001261C File Offset: 0x0001081C
// (set) Token: 0x060004F4 RID: 1268 RVA: 0x00012624 File Offset: 0x00010824
public int Pos { get; set; }
// Token: 0x170000B6 RID: 182
// (get) Token: 0x060004F5 RID: 1269 RVA: 0x00012630 File Offset: 0x00010830
// (set) Token: 0x060004F6 RID: 1270 RVA: 0x00012638 File Offset: 0x00010838
public string Voice { get; set; }
// Token: 0x170000B7 RID: 183
// (get) Token: 0x060004F7 RID: 1271 RVA: 0x00012644 File Offset: 0x00010844
// (set) Token: 0x060004F8 RID: 1272 RVA: 0x0001264C File Offset: 0x0001084C
public string Name { get; set; }
// Token: 0x170000B8 RID: 184
// (get) Token: 0x060004F9 RID: 1273 RVA: 0x00012658 File Offset: 0x00010858
// (set) Token: 0x060004FA RID: 1274 RVA: 0x00012660 File Offset: 0x00010860
public string Txt { get; set; }
// Token: 0x060004FB RID: 1275 RVA: 0x0001266C File Offset: 0x0001086C
public bool IsEqual(int nKs, int nLabel, int nPos)
{
return this.KsNo == nKs && this.LabelNo == nLabel && this.Pos >= nPos;
}
}
}
@@ -0,0 +1,106 @@
using System;
using System.Collections.Generic;
namespace Qoo.Message
{
// Token: 0x020000A7 RID: 167
public class BackLog
{
// Token: 0x170000B2 RID: 178
// (get) Token: 0x060004E6 RID: 1254 RVA: 0x0001239C File Offset: 0x0001059C
public bool Empty
{
get
{
return this.GetNum() == 0;
}
}
// Token: 0x060004E7 RID: 1255 RVA: 0x000123A8 File Offset: 0x000105A8
public void Init()
{
this.Clear();
this.m_isEnable = true;
}
// Token: 0x060004E8 RID: 1256 RVA: 0x000123B8 File Offset: 0x000105B8
public void Clear()
{
this.LogList.Clear();
}
// Token: 0x060004E9 RID: 1257 RVA: 0x000123C8 File Offset: 0x000105C8
public int GetNum()
{
return this.LogList.Count;
}
// Token: 0x060004EA RID: 1258 RVA: 0x000123D8 File Offset: 0x000105D8
public void SetMesNo(int nKs, int nLabel, int nMes)
{
this.m_nKsNo = nKs;
this.m_nLabelNo = nLabel;
this.m_nMesNo = nMes;
}
// Token: 0x060004EB RID: 1259 RVA: 0x000123F0 File Offset: 0x000105F0
public bool AddMessage(string text, string name, string voice)
{
if (!this.m_isEnable)
{
return false;
}
if (this.LogList.Count > 0 && this.LogList[this.LogList.Count - 1].IsEqual(this.m_nKsNo, this.m_nLabelNo, this.m_nMesNo))
{
this.LogList[this.LogList.Count - 1] = new BACKLOG_ITEM(this.m_nKsNo, this.m_nLabelNo, this.m_nMesNo, voice, name, text);
return true;
}
this.LogList.Add(new BACKLOG_ITEM(this.m_nKsNo, this.m_nLabelNo, this.m_nMesNo, voice, name, text));
if (this.LogList.Count - 64 > 0)
{
this.LogList.RemoveRange(0, this.LogList.Count - 64);
}
return true;
}
// Token: 0x060004EC RID: 1260 RVA: 0x000124D8 File Offset: 0x000106D8
public void RemoveMessage(int nKsNo, int nLabelNo, int nMesNo)
{
while (this.m_isEnable)
{
if (this.LogList.Count == 0)
{
break;
}
if (!this.LogList[this.LogList.Count - 1].IsEqual(nKsNo, nLabelNo, nMesNo))
{
break;
}
this.LogList.RemoveAt(this.LogList.Count - 1);
}
}
// Token: 0x060004ED RID: 1261 RVA: 0x0001254C File Offset: 0x0001074C
public BACKLOG_ITEM[] GetRenge(int max)
{
int count = (this.LogList.Count <= max) ? this.LogList.Count : max;
int index = (this.LogList.Count <= max) ? 0 : (this.LogList.Count - max);
return this.LogList.GetRange(index, count).ToArray();
}
// Token: 0x04000381 RID: 897
private List<BACKLOG_ITEM> LogList = new List<BACKLOG_ITEM>();
// Token: 0x04000382 RID: 898
private int m_nKsNo;
// Token: 0x04000383 RID: 899
private int m_nLabelNo;
// Token: 0x04000384 RID: 900
private int m_nMesNo;
// Token: 0x04000385 RID: 901
private bool m_isEnable;
}
}
@@ -0,0 +1,102 @@
using System;
using UnityEngine;
namespace Qoo.Message
{
// Token: 0x020000B0 RID: 176
public class MSGWND_STYLE_DATA
{
// Token: 0x06000521 RID: 1313 RVA: 0x0001398C File Offset: 0x00011B8C
public MSGWND_STYLE_DATA()
{
this.posName = new Point3[2];
}
// Token: 0x06000522 RID: 1314 RVA: 0x000139A0 File Offset: 0x00011BA0
public MSGWND_STYLE_DATA(Point3 posFrm_, Point3[] posName_, Point3 posFace_, Point3 posBrk_, Size sizeBrkSplit_, int nBrkWait_, Point3 posTxt_, Size sizeTxt_, int nTxtWEx_, bool bTxtAutoRet_, Color32 colTxt_, Color32 colRefWord_, Color32 colRefBg_, Color32 colRefCur_, string BrkCg_, string BrkAutoCg_)
{
this.posName = new Point3[2];
Debug.Assert(this.posName.Length == posName_.Length);
this.posFrm = posFrm_;
for (int num = 0; num != this.posName.Length; num++)
{
this.posName[num] = posName_[num];
}
this.posFace = posFace_;
this.posBrk = posBrk_;
this.sizeBrkSplit = sizeBrkSplit_;
this.nBrkWait = nBrkWait_;
this.posTxt = posTxt_;
this.sizeTxt = sizeTxt_;
this.nTxtWEx = nTxtWEx_;
this.bTxtAutoRet = bTxtAutoRet_;
this.colTxt = colTxt_;
this.colRefWord = colRefWord_;
this.colRefBg = colRefBg_;
this.colRefCur = colRefCur_;
this.BrkCg = BrkCg_;
this.BrkAutoCg = BrkAutoCg_;
}
// Token: 0x06000523 RID: 1315 RVA: 0x00013A6C File Offset: 0x00011C6C
internal void SetPosScale(float fX, float fY)
{
this.posFrm.Scale(fX, fY, 1f);
foreach (Point3 point in this.posName)
{
point.Scale(fX, fY, 1f);
}
this.posFace.Scale(fX, fY, 1f);
this.posBrk.Scale(fX, fY, 1f);
this.posTxt.Scale(fX, fY, 1f);
}
// Token: 0x040003C1 RID: 961
public Point3 posFrm;
// Token: 0x040003C2 RID: 962
public Point3[] posName;
// Token: 0x040003C3 RID: 963
public Point3 posFace;
// Token: 0x040003C4 RID: 964
public Point3 posBrk;
// Token: 0x040003C5 RID: 965
public Size sizeBrkSplit;
// Token: 0x040003C6 RID: 966
public int nBrkWait;
// Token: 0x040003C7 RID: 967
public Point3 posTxt;
// Token: 0x040003C8 RID: 968
public Size sizeTxt;
// Token: 0x040003C9 RID: 969
public int nTxtWEx;
// Token: 0x040003CA RID: 970
public bool bTxtAutoRet;
// Token: 0x040003CB RID: 971
public Color32 colTxt;
// Token: 0x040003CC RID: 972
public Color32 colRefWord;
// Token: 0x040003CD RID: 973
public Color32 colRefBg;
// Token: 0x040003CE RID: 974
public Color32 colRefCur;
// Token: 0x040003CF RID: 975
public string BrkCg;
// Token: 0x040003D0 RID: 976
public string BrkAutoCg;
}
}
@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using Qoo.Def;
namespace Qoo.Message
{
// Token: 0x020000B1 RID: 177
public static class MessageStyle
{
// Token: 0x06000525 RID: 1317 RVA: 0x00013B10 File Offset: 0x00011D10
public static bool AddStyle(MSGWND_STYLE style, string nameStyle, string nameFrameCg, MSGWND_STYLE_DATA data)
{
MessageStyle.DicStyleData.Add(style, data);
MessageStyle.DicFrameCg.Add(style, nameFrameCg);
MessageStyle.DicNameTable.Add(nameStyle, style);
return true;
}
// Token: 0x06000526 RID: 1318 RVA: 0x00013B38 File Offset: 0x00011D38
public static bool Clear()
{
MessageStyle.DicStyleData.Clear();
MessageStyle.DicFrameCg.Clear();
MessageStyle.DicNameTable.Clear();
return true;
}
// Token: 0x06000527 RID: 1319 RVA: 0x00013B5C File Offset: 0x00011D5C
public static MSGWND_STYLE_DATA GetData(MSGWND_STYLE style)
{
return MessageStyle.DicStyleData[style];
}
// Token: 0x06000528 RID: 1320 RVA: 0x00013B6C File Offset: 0x00011D6C
public static MSGWND_STYLE GetStyle(string style_name)
{
return MessageStyle.DicNameTable[style_name];
}
// Token: 0x06000529 RID: 1321 RVA: 0x00013B7C File Offset: 0x00011D7C
public static string GetFrameCgName(MSGWND_STYLE style)
{
return MessageStyle.DicFrameCg[style];
}
// Token: 0x040003D1 RID: 977
private static Dictionary<MSGWND_STYLE, MSGWND_STYLE_DATA> DicStyleData = new Dictionary<MSGWND_STYLE, MSGWND_STYLE_DATA>();
// Token: 0x040003D2 RID: 978
private static Dictionary<MSGWND_STYLE, string> DicFrameCg = new Dictionary<MSGWND_STYLE, string>();
// Token: 0x040003D3 RID: 979
private static Dictionary<string, MSGWND_STYLE> DicNameTable = new Dictionary<string, MSGWND_STYLE>();
}
}