initial commit
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Game;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x0200001A RID: 26
|
||||
public static class Chara
|
||||
{
|
||||
// Token: 0x0600006F RID: 111 RVA: 0x00003AD4 File Offset: 0x00001CD4
|
||||
public static void Clear()
|
||||
{
|
||||
Chara.m_CharTbl.Clear();
|
||||
}
|
||||
|
||||
// Token: 0x06000070 RID: 112 RVA: 0x00003AE0 File Offset: 0x00001CE0
|
||||
public static void Add(CHAR_ID id, GAMECHAR_TABLE tbl)
|
||||
{
|
||||
Chara.m_CharTbl.Add(id, tbl);
|
||||
Debug.Print(string.Format("INFO:キャラ番号を追加しました ID={0} Name={1}", id.ToString(), tbl.szNameJFull));
|
||||
}
|
||||
|
||||
// Token: 0x06000071 RID: 113 RVA: 0x00003B10 File Offset: 0x00001D10
|
||||
public static string[] GetCharNameArray()
|
||||
{
|
||||
List<string> list = new List<string>();
|
||||
foreach (KeyValuePair<CHAR_ID, GAMECHAR_TABLE> keyValuePair in Chara.m_CharTbl)
|
||||
{
|
||||
list.Add(keyValuePair.Value.szName);
|
||||
}
|
||||
return list.ToArray();
|
||||
}
|
||||
|
||||
// Token: 0x06000072 RID: 114 RVA: 0x00003B90 File Offset: 0x00001D90
|
||||
public static string GetFirstName()
|
||||
{
|
||||
return "アリス";
|
||||
}
|
||||
|
||||
// Token: 0x06000073 RID: 115 RVA: 0x00003B98 File Offset: 0x00001D98
|
||||
public static string GetFamilyName()
|
||||
{
|
||||
return "リデル";
|
||||
}
|
||||
|
||||
// Token: 0x06000074 RID: 116 RVA: 0x00003BA0 File Offset: 0x00001DA0
|
||||
public static string GetNameFromId(CHAR_ID nCharId)
|
||||
{
|
||||
Debug.Assert(nCharId < CHAR_ID.NUM, string.Format("範囲外のキャラIDです{0}\n", nCharId));
|
||||
return Chara.m_CharTbl[nCharId].szName;
|
||||
}
|
||||
|
||||
// Token: 0x06000075 RID: 117 RVA: 0x00003BDC File Offset: 0x00001DDC
|
||||
public static CHAR_ID GetIdFromName(string szName)
|
||||
{
|
||||
string a = szName.ToLower();
|
||||
foreach (KeyValuePair<CHAR_ID, GAMECHAR_TABLE> keyValuePair in Chara.m_CharTbl)
|
||||
{
|
||||
if (string.Equals(a, keyValuePair.Value.szName))
|
||||
{
|
||||
return keyValuePair.Key;
|
||||
}
|
||||
}
|
||||
return CHAR_ID.NOTHING;
|
||||
}
|
||||
|
||||
// Token: 0x06000076 RID: 118 RVA: 0x00003C70 File Offset: 0x00001E70
|
||||
public static CHAR_ID GetIdFromVoice(string szVoiceName)
|
||||
{
|
||||
string text = szVoiceName.ToLower();
|
||||
foreach (KeyValuePair<CHAR_ID, GAMECHAR_TABLE> keyValuePair in Chara.m_CharTbl)
|
||||
{
|
||||
if (keyValuePair.Value.szVoice != null && keyValuePair.Value.szVoice.Length > 0 && text.IndexOf(keyValuePair.Value.szVoice) == 0)
|
||||
{
|
||||
return keyValuePair.Key;
|
||||
}
|
||||
}
|
||||
return CHAR_ID.MOB;
|
||||
}
|
||||
|
||||
// Token: 0x06000077 RID: 119 RVA: 0x00003D34 File Offset: 0x00001F34
|
||||
public static string GetVoiceFromId(CHAR_ID nCharId)
|
||||
{
|
||||
Debug.Assert(nCharId < CHAR_ID.NUM, string.Format("範囲外のキャラIDです{0}\n", nCharId));
|
||||
return Chara.m_CharTbl[nCharId].szVoice;
|
||||
}
|
||||
|
||||
// Token: 0x06000078 RID: 120 RVA: 0x00003D70 File Offset: 0x00001F70
|
||||
public static string GetKsName(CHAR_ID eChar, int iNo)
|
||||
{
|
||||
Debug.Assert(Chara.m_CharTbl[eChar].szKsName != null, "指定キャラにはKS名がセットされていません\n");
|
||||
return string.Format("{0}{1:00}.ks", Chara.m_CharTbl[eChar].szKsName, iNo);
|
||||
}
|
||||
|
||||
// Token: 0x040000EC RID: 236
|
||||
private static Dictionary<CHAR_ID, GAMECHAR_TABLE> m_CharTbl = new Dictionary<CHAR_ID, GAMECHAR_TABLE>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x02000019 RID: 25
|
||||
public struct GAMECHAR_TABLE
|
||||
{
|
||||
// Token: 0x0600006D RID: 109 RVA: 0x00003AA0 File Offset: 0x00001CA0
|
||||
public GAMECHAR_TABLE(string a, string b, string c, string d, string e)
|
||||
{
|
||||
this.szName = a;
|
||||
this.szNameJFull = b;
|
||||
this.szNameJ = c;
|
||||
this.szKsName = d;
|
||||
this.szVoice = e;
|
||||
}
|
||||
|
||||
// Token: 0x040000E7 RID: 231
|
||||
public string szName;
|
||||
|
||||
// Token: 0x040000E8 RID: 232
|
||||
public string szNameJFull;
|
||||
|
||||
// Token: 0x040000E9 RID: 233
|
||||
public string szNameJ;
|
||||
|
||||
// Token: 0x040000EA RID: 234
|
||||
public string szKsName;
|
||||
|
||||
// Token: 0x040000EB RID: 235
|
||||
public string szVoice;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Qoo.Ks;
|
||||
using Qoo.Memory;
|
||||
using Qoo.Param;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x02000021 RID: 33
|
||||
public class GAME_SAVE_DATA
|
||||
{
|
||||
// Token: 0x060000ED RID: 237 RVA: 0x00005370 File Offset: 0x00003570
|
||||
public bool Ready()
|
||||
{
|
||||
this.m_Read = new Read();
|
||||
this.m_Read.Copy(GameData.ReadData);
|
||||
this.m_Param = GameData.GetSaveParam();
|
||||
this.m_Log = new KS_LOG_DATA();
|
||||
this.m_Log.Ready();
|
||||
this.m_Scene = Singleton<EventWnd>.Instance.SceneBackup;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000EE RID: 238 RVA: 0x000053CC File Offset: 0x000035CC
|
||||
public bool Save(MemFile mem)
|
||||
{
|
||||
this.m_Header.Save(mem);
|
||||
this.m_Read.Save(mem);
|
||||
this.m_Param.Save(mem);
|
||||
this.m_Log.Save(mem);
|
||||
this.m_Scene.Save(mem);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000EF RID: 239 RVA: 0x0000541C File Offset: 0x0000361C
|
||||
public bool Load(MemFile mem)
|
||||
{
|
||||
this.m_Header.Load(mem);
|
||||
this.m_Read = new Read();
|
||||
this.m_Read.Load(mem);
|
||||
this.m_Param = new GameParam();
|
||||
this.m_Param.Load(mem);
|
||||
this.m_Log = new KS_LOG_DATA();
|
||||
this.m_Log.Load(mem);
|
||||
this.m_Scene = new EVENTBACKUPDATA();
|
||||
this.m_Scene.Load(mem);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000F0 RID: 240 RVA: 0x00005498 File Offset: 0x00003698
|
||||
public void Apply()
|
||||
{
|
||||
List<string> list = new List<string>();
|
||||
list.AddRange(this.m_Log.m_KsNameArray);
|
||||
foreach (SCENEPOSDATA sceneposdata in this.m_Log.m_LogData)
|
||||
{
|
||||
if (!list.Contains(Akb.GetFileInfo((int)sceneposdata.sFileNo).Name))
|
||||
{
|
||||
list.Add(Akb.GetFileInfo((int)sceneposdata.sFileNo).Name);
|
||||
}
|
||||
}
|
||||
this.m_Log.m_KsNameArray = list.ToArray();
|
||||
}
|
||||
|
||||
// Token: 0x04000106 RID: 262
|
||||
public GAME_SAVE_DATA_HEADER m_Header = new GAME_SAVE_DATA_HEADER();
|
||||
|
||||
// Token: 0x04000107 RID: 263
|
||||
public Read m_Read;
|
||||
|
||||
// Token: 0x04000108 RID: 264
|
||||
public GameParam m_Param;
|
||||
|
||||
// Token: 0x04000109 RID: 265
|
||||
public KS_LOG_DATA m_Log;
|
||||
|
||||
// Token: 0x0400010A RID: 266
|
||||
public EVENTBACKUPDATA m_Scene;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Qoo.Memory;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x02000020 RID: 32
|
||||
public class GAME_SAVE_DATA_HEADER
|
||||
{
|
||||
// Token: 0x060000EA RID: 234 RVA: 0x00005300 File Offset: 0x00003500
|
||||
public bool Save(MemFile mem)
|
||||
{
|
||||
mem.SetStringUtf16(this.m_ID);
|
||||
mem.SetInt32(this.m_iVersion);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000EB RID: 235 RVA: 0x0000531C File Offset: 0x0000351C
|
||||
public bool Load(MemFile mem)
|
||||
{
|
||||
string stringUtf = mem.GetStringUtf16();
|
||||
if (stringUtf != this.m_ID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int @int = mem.GetInt32();
|
||||
return @int == this.m_iVersion;
|
||||
}
|
||||
|
||||
// Token: 0x04000103 RID: 259
|
||||
public const int GAME_SAVE_DATA_VERSION = 2;
|
||||
|
||||
// Token: 0x04000104 RID: 260
|
||||
public string m_ID = "QOO.SAVEDATA.GAME";
|
||||
|
||||
// Token: 0x04000105 RID: 261
|
||||
public int m_iVersion = 2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,567 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Game;
|
||||
using Qoo.Application;
|
||||
using Qoo.Def;
|
||||
using Qoo.Input;
|
||||
using Qoo.Ks;
|
||||
using Qoo.Param;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x0200001B RID: 27
|
||||
public static class GameData
|
||||
{
|
||||
// Token: 0x17000014 RID: 20
|
||||
// (get) Token: 0x0600007A RID: 122 RVA: 0x00003E20 File Offset: 0x00002020
|
||||
public static Read ReadData
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameData.m_GameRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000015 RID: 21
|
||||
// (get) Token: 0x0600007B RID: 123 RVA: 0x00003E28 File Offset: 0x00002028
|
||||
// (set) Token: 0x0600007C RID: 124 RVA: 0x00003E30 File Offset: 0x00002030
|
||||
public static GameParam Param
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameData.m_Param;
|
||||
}
|
||||
set
|
||||
{
|
||||
GameData.m_Param = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000016 RID: 22
|
||||
// (get) Token: 0x0600007D RID: 125 RVA: 0x00003E38 File Offset: 0x00002038
|
||||
// (set) Token: 0x0600007E RID: 126 RVA: 0x00003E54 File Offset: 0x00002054
|
||||
public static GameParam LockParam
|
||||
{
|
||||
get
|
||||
{
|
||||
return (!GameData.m_isLockGameData) ? GameData.Param : GameData.m_LockParam;
|
||||
}
|
||||
set
|
||||
{
|
||||
GameData.m_LockParam = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000017 RID: 23
|
||||
// (get) Token: 0x0600007F RID: 127 RVA: 0x00003E5C File Offset: 0x0000205C
|
||||
// (set) Token: 0x06000080 RID: 128 RVA: 0x00003E64 File Offset: 0x00002064
|
||||
public static List<KsWorkLog> OldWork
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameData.m_OldWorkList;
|
||||
}
|
||||
set
|
||||
{
|
||||
GameData.m_OldWorkList = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000018 RID: 24
|
||||
// (get) Token: 0x06000081 RID: 129 RVA: 0x00003E6C File Offset: 0x0000206C
|
||||
// (set) Token: 0x06000082 RID: 130 RVA: 0x00003E74 File Offset: 0x00002074
|
||||
public static bool EnableChangeParam
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameData.m_isChangeParam;
|
||||
}
|
||||
set
|
||||
{
|
||||
GameData.m_isChangeParam = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000019 RID: 25
|
||||
// (get) Token: 0x06000083 RID: 131 RVA: 0x00003E7C File Offset: 0x0000207C
|
||||
// (set) Token: 0x06000084 RID: 132 RVA: 0x00003E84 File Offset: 0x00002084
|
||||
public static bool IsMoveTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameData.m_isMoveTitle;
|
||||
}
|
||||
set
|
||||
{
|
||||
GameData.m_isMoveTitle = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000085 RID: 133 RVA: 0x00003E8C File Offset: 0x0000208C
|
||||
public static void Clear()
|
||||
{
|
||||
GameData.Param.Clear();
|
||||
GameData.LockParam.Clear();
|
||||
GameData.m_GameRead.Init();
|
||||
GameData.OldWork.Clear();
|
||||
GameData.EnableChangeParam = false;
|
||||
GameData.m_isLoadData = false;
|
||||
GameData.m_strLastMessage = string.Empty;
|
||||
GameData.m_memory = false;
|
||||
GameData.m_memoryKs = string.Empty;
|
||||
GameData.m_memoryLabel = string.Empty;
|
||||
}
|
||||
|
||||
// Token: 0x06000086 RID: 134 RVA: 0x00003EF4 File Offset: 0x000020F4
|
||||
public static void Init()
|
||||
{
|
||||
GameData.Param.Init();
|
||||
GameData.LockParam.Init();
|
||||
GameData.m_GameRead.Init();
|
||||
GameData.OldWork.Clear();
|
||||
GameData.EnableChangeParam = false;
|
||||
GameData.m_isLockGameData = false;
|
||||
GameData.m_isLoadData = false;
|
||||
GameData.m_strLastMessage = string.Empty;
|
||||
GameData.m_memory = false;
|
||||
GameData.m_memoryKs = string.Empty;
|
||||
GameData.m_memoryLabel = string.Empty;
|
||||
}
|
||||
|
||||
// Token: 0x06000087 RID: 135 RVA: 0x00003F60 File Offset: 0x00002160
|
||||
public static bool SetRead(int nKsNo, int nLabelNo, int nTagNo)
|
||||
{
|
||||
GameData.m_GameRead.Set(nKsNo, nLabelNo, nTagNo);
|
||||
SysData.SetRead(nKsNo, nLabelNo, nTagNo);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000088 RID: 136 RVA: 0x00003F7C File Offset: 0x0000217C
|
||||
internal static bool IsRead(int KsNo, int LabelNo, int TagNo)
|
||||
{
|
||||
return GameData.m_GameRead.IsRead(KsNo, LabelNo, TagNo);
|
||||
}
|
||||
|
||||
// Token: 0x06000089 RID: 137 RVA: 0x00003F8C File Offset: 0x0000218C
|
||||
internal static bool IsRead(string KsName, string LabelName)
|
||||
{
|
||||
int nKs = 0;
|
||||
int nLabel = 0;
|
||||
return Akb.GetFileLabel(ref nKs, ref nLabel, KsName, LabelName) && GameData.m_GameRead.IsRead(nKs, nLabel, 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600008A RID: 138 RVA: 0x00003FBC File Offset: 0x000021BC
|
||||
public static bool CheckReadedSkip(int nKsNo, int nLabelNo, int nTagNo)
|
||||
{
|
||||
if (!KsInput.IsSkip)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (SysData.GetSkip() == SKIP_MODE.ALL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (SysData.GetSkip() == SKIP_MODE.DISABLE || !SysData.IsRead(nKsNo, nLabelNo, nTagNo + 1))
|
||||
{
|
||||
KsInput.Unlock();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600008B RID: 139 RVA: 0x00004004 File Offset: 0x00002204
|
||||
public static bool AttachParam(string name, int init, string[] indexArray = null)
|
||||
{
|
||||
if (indexArray != null)
|
||||
{
|
||||
for (int num = 0; num != indexArray.Length; num++)
|
||||
{
|
||||
GameData.Param.Attach(name + indexArray[num], init.ToString(), num, false);
|
||||
Debug.Print(string.Format("INFO:ゲームパラメータ {0}[{1}]={2} type=int を追加しました", name, indexArray[num], init));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GameData.Param.Attach(name, init.ToString(), 0, false);
|
||||
Debug.Print(string.Format("INFO:ゲームパラメータ {0}={1} type=int を追加しました", name, init));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600008C RID: 140 RVA: 0x00004094 File Offset: 0x00002294
|
||||
public static bool AttachParam(string name, string init, string[] indexArray = null)
|
||||
{
|
||||
if (indexArray != null)
|
||||
{
|
||||
for (int num = 0; num != indexArray.Length; num++)
|
||||
{
|
||||
GameData.Param.Attach(name + indexArray[num], init, num, true);
|
||||
Debug.Print(string.Format("INFO:ゲームパラメータ {0}[{1}]={2} type=string を追加しました", name, indexArray[num], init));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GameData.Param.Attach(name, init, 0, true);
|
||||
Debug.Print(string.Format("INFO:ゲームパラメータ {0}={1} type=string を追加しました", name, init));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600008D RID: 141 RVA: 0x0000410C File Offset: 0x0000230C
|
||||
public static bool SetParamString(string name, string index, string param)
|
||||
{
|
||||
string name2 = name + index;
|
||||
string old_param = GameData.Param.Get(name2);
|
||||
if (name == "rand")
|
||||
{
|
||||
param = App.GetRandom(int.Parse(param)).ToString();
|
||||
}
|
||||
GameData.ChangeParam(name, index, old_param, param);
|
||||
return GameData.Param.Set(name2, param);
|
||||
}
|
||||
|
||||
// Token: 0x0600008E RID: 142 RVA: 0x00004168 File Offset: 0x00002368
|
||||
public static string GetParamString(string name, string index = "")
|
||||
{
|
||||
return GameData.Param.Get(name + index);
|
||||
}
|
||||
|
||||
// Token: 0x0600008F RID: 143 RVA: 0x0000417C File Offset: 0x0000237C
|
||||
public static int GetParamInt(string name, string index = "")
|
||||
{
|
||||
return GameData.Param.GetInt(name + index);
|
||||
}
|
||||
|
||||
// Token: 0x06000090 RID: 144 RVA: 0x00004190 File Offset: 0x00002390
|
||||
public static bool SetParamInt(string name_, string index_, int param_)
|
||||
{
|
||||
string name = name_ + index_;
|
||||
string old_param = GameData.Param.Get(name);
|
||||
if (name_ == "rand")
|
||||
{
|
||||
int random = App.GetRandom(param_);
|
||||
Debug.Print(string.Format("INFO:パラメータ:{0}に{1}を元に{2}を設定しました", name_, param_, random));
|
||||
param_ = random;
|
||||
}
|
||||
GameData.ChangeParam(name_, index_, old_param, param_.ToString());
|
||||
return GameData.Param.SetInt(name_ + index_, param_);
|
||||
}
|
||||
|
||||
// Token: 0x06000091 RID: 145 RVA: 0x00004208 File Offset: 0x00002408
|
||||
public static bool CmpParam(string valueName, string indexName, string paramName)
|
||||
{
|
||||
string name = valueName + indexName;
|
||||
if (GameData.Param.IsString(name))
|
||||
{
|
||||
return GameData.CmpParamString(valueName, indexName, paramName);
|
||||
}
|
||||
return GameData.CmpParamInt(valueName, indexName, int.Parse(paramName));
|
||||
}
|
||||
|
||||
// Token: 0x06000092 RID: 146 RVA: 0x00004244 File Offset: 0x00002444
|
||||
public static bool CmpParamString(string ValueName, string IndexName, string Param_)
|
||||
{
|
||||
return GameData.GetParamString(ValueName, IndexName) == Param_;
|
||||
}
|
||||
|
||||
// Token: 0x06000093 RID: 147 RVA: 0x00004254 File Offset: 0x00002454
|
||||
public static bool CmpParamInt(string ValueName, string IndexName, int Param_)
|
||||
{
|
||||
int paramInt = GameData.GetParamInt(ValueName, IndexName);
|
||||
return Param_ <= paramInt;
|
||||
}
|
||||
|
||||
// Token: 0x06000094 RID: 148 RVA: 0x00004270 File Offset: 0x00002470
|
||||
public static bool AddParam(string value_, string index_, string param_)
|
||||
{
|
||||
int paramInt = GameData.GetParamInt(value_, index_);
|
||||
return GameData.SetParamInt(value_, index_, int.Parse(param_) + paramInt);
|
||||
}
|
||||
|
||||
// Token: 0x06000095 RID: 149 RVA: 0x00004294 File Offset: 0x00002494
|
||||
public static bool CmpOtherParam(string ValueName, string IndexName, string Value1Name, string Index1Name)
|
||||
{
|
||||
return GameData.GetParamString(ValueName, IndexName) == GameData.GetParamString(Value1Name, Index1Name);
|
||||
}
|
||||
|
||||
// Token: 0x06000096 RID: 150 RVA: 0x000042AC File Offset: 0x000024AC
|
||||
public static int SearchParam(string p, ref int nArraySize)
|
||||
{
|
||||
nArraySize = 0;
|
||||
int num = GameData.Param.SearchZeroIndex(p);
|
||||
if (num < 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
nArraySize = GameData.Param.GetIndexNum(num);
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06000097 RID: 151 RVA: 0x000042E0 File Offset: 0x000024E0
|
||||
internal static string GetParamString(int index)
|
||||
{
|
||||
return GameData.Param.GetParamString(index);
|
||||
}
|
||||
|
||||
// Token: 0x06000098 RID: 152 RVA: 0x000042F0 File Offset: 0x000024F0
|
||||
internal static void SetParam(int index, int value)
|
||||
{
|
||||
GameData.Param.SetParam(index, value);
|
||||
}
|
||||
|
||||
// Token: 0x06000099 RID: 153 RVA: 0x00004300 File Offset: 0x00002500
|
||||
public static bool IsPayRoute(CHAR_ID id)
|
||||
{
|
||||
return GameData.GetParamInt("money", Chara.GetNameFromId(id)) > 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600009A RID: 154 RVA: 0x00004320 File Offset: 0x00002520
|
||||
public static bool IsPayRouteFull()
|
||||
{
|
||||
return GameData.GetParamInt("moneyfull", string.Empty) > 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600009B RID: 155 RVA: 0x00004340 File Offset: 0x00002540
|
||||
public static void StartVoiceCheck()
|
||||
{
|
||||
GameData.SetParamInt("voicecheck", string.Empty, 1);
|
||||
}
|
||||
|
||||
// Token: 0x0600009C RID: 156 RVA: 0x00004354 File Offset: 0x00002554
|
||||
public static void ResetVoiceCheck()
|
||||
{
|
||||
GameData.SetParamInt("voicecheck", string.Empty, 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600009D RID: 157 RVA: 0x00004368 File Offset: 0x00002568
|
||||
public static bool IsVoiceCheck()
|
||||
{
|
||||
return GameData.GetParamInt("voicecheck", string.Empty) > 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600009E RID: 158 RVA: 0x00004388 File Offset: 0x00002588
|
||||
public static bool IsFullVoiceCheck()
|
||||
{
|
||||
return GameData.GetParamInt("voicecheck", string.Empty) > 1;
|
||||
}
|
||||
|
||||
// Token: 0x0600009F RID: 159 RVA: 0x000043A8 File Offset: 0x000025A8
|
||||
private static void ChangeParam(string name, string index, string old_param, string new_param)
|
||||
{
|
||||
if (GameData.EnableChangeParam && new_param != old_param)
|
||||
{
|
||||
Debug.Print(string.Format("INFO:ChangeParam:Name={0},Index={1},New={2},Old={3}", new object[]
|
||||
{
|
||||
name,
|
||||
index,
|
||||
new_param,
|
||||
old_param
|
||||
}));
|
||||
KsWorkLog item = default(KsWorkLog);
|
||||
item.Value = name;
|
||||
item.Index = index;
|
||||
item.Old = old_param;
|
||||
item.New = new_param;
|
||||
GameData.OldWork.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000A0 RID: 160 RVA: 0x00004424 File Offset: 0x00002624
|
||||
internal static void SetGameEnd()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060000A1 RID: 161 RVA: 0x00004428 File Offset: 0x00002628
|
||||
public static bool LockGameData()
|
||||
{
|
||||
bool isLockGameData = GameData.m_isLockGameData;
|
||||
GameData.m_isLockGameData = true;
|
||||
GameData.LockParam.Copy(GameData.Param);
|
||||
return isLockGameData;
|
||||
}
|
||||
|
||||
// Token: 0x060000A2 RID: 162 RVA: 0x00004454 File Offset: 0x00002654
|
||||
public static bool UnlockGameData()
|
||||
{
|
||||
bool isLockGameData = GameData.m_isLockGameData;
|
||||
GameData.m_isLockGameData = false;
|
||||
return isLockGameData;
|
||||
}
|
||||
|
||||
// Token: 0x1700001A RID: 26
|
||||
// (get) Token: 0x060000A3 RID: 163 RVA: 0x00004470 File Offset: 0x00002670
|
||||
// (set) Token: 0x060000A4 RID: 164 RVA: 0x00004478 File Offset: 0x00002678
|
||||
public static string LastMessage
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameData.m_strLastMessage;
|
||||
}
|
||||
set
|
||||
{
|
||||
GameData.m_strLastMessage = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000A5 RID: 165 RVA: 0x00004480 File Offset: 0x00002680
|
||||
public static string GetSceneName()
|
||||
{
|
||||
return GameData.GetParamString("scene", string.Empty);
|
||||
}
|
||||
|
||||
// Token: 0x060000A6 RID: 166 RVA: 0x00004494 File Offset: 0x00002694
|
||||
public static CHAR_ID GetRoute()
|
||||
{
|
||||
return Chara.GetIdFromName(GameData.GetParamString("route", string.Empty));
|
||||
}
|
||||
|
||||
// Token: 0x060000A7 RID: 167 RVA: 0x000044AC File Offset: 0x000026AC
|
||||
public static void SetRoute(CHAR_ID id)
|
||||
{
|
||||
GameData.SetParamString("route", string.Empty, Chara.GetNameFromId(id));
|
||||
}
|
||||
|
||||
// Token: 0x060000A8 RID: 168 RVA: 0x000044C4 File Offset: 0x000026C4
|
||||
public static string GetFirstName()
|
||||
{
|
||||
return GameData.GetParamString("firstname", string.Empty);
|
||||
}
|
||||
|
||||
// Token: 0x060000A9 RID: 169 RVA: 0x000044D8 File Offset: 0x000026D8
|
||||
public static void SetFirstName(string name)
|
||||
{
|
||||
GameData.SetParamString("firstname", string.Empty, name);
|
||||
}
|
||||
|
||||
// Token: 0x060000AA RID: 170 RVA: 0x000044EC File Offset: 0x000026EC
|
||||
public static byte[] Save()
|
||||
{
|
||||
if (!GameData.m_isLoadData)
|
||||
{
|
||||
return GameData.m_Data.Save();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060000AB RID: 171 RVA: 0x00004504 File Offset: 0x00002704
|
||||
public static bool Load(byte[] data_)
|
||||
{
|
||||
GameData.m_isLoadData = true;
|
||||
return GameData.m_Data.Load(data_);
|
||||
}
|
||||
|
||||
// Token: 0x060000AC RID: 172 RVA: 0x00004518 File Offset: 0x00002718
|
||||
internal static bool IsLoadData()
|
||||
{
|
||||
return GameData.m_isLoadData;
|
||||
}
|
||||
|
||||
// Token: 0x060000AD RID: 173 RVA: 0x00004520 File Offset: 0x00002720
|
||||
internal static GAME_SAVE_DATA GetLoadData()
|
||||
{
|
||||
GameData.m_isLoadData = false;
|
||||
GameData.m_isLockGameData = true;
|
||||
GameData.m_Param.Copy(GameData.m_Data.LoadData.m_Param);
|
||||
GameData.m_GameRead.Copy(GameData.m_Data.LoadData.m_Read);
|
||||
GameData.LockGameData();
|
||||
return GameData.m_Data.LoadData;
|
||||
}
|
||||
|
||||
// Token: 0x060000AE RID: 174 RVA: 0x0000457C File Offset: 0x0000277C
|
||||
internal static GameParam GetSaveParam()
|
||||
{
|
||||
GameParam gameParam = new GameParam();
|
||||
gameParam.Copy(GameData.LockParam);
|
||||
gameParam.Set("firstname", GameData.GetFirstName());
|
||||
return gameParam;
|
||||
}
|
||||
|
||||
// Token: 0x060000AF RID: 175 RVA: 0x000045AC File Offset: 0x000027AC
|
||||
public static void MemoryMode_Create(string route, string stay, string ks, string label, string nameEvent)
|
||||
{
|
||||
string firstName = GameData.GetFirstName();
|
||||
GameData.Init();
|
||||
GameData.SetFirstName(firstName);
|
||||
GameData.StartVoiceCheck();
|
||||
GameData.SetParamString("route", string.Empty, route);
|
||||
GameData.SetParamString("stay", string.Empty, stay);
|
||||
GameData.SetParamString("memory", string.Empty, nameEvent);
|
||||
GameData.m_memory = true;
|
||||
GameData.m_memoryKs = ks;
|
||||
GameData.m_memoryLabel = ((label.Length != 0) ? label.Substring(1) : string.Empty);
|
||||
}
|
||||
|
||||
// Token: 0x060000B0 RID: 176 RVA: 0x00004630 File Offset: 0x00002830
|
||||
public static void MemoryMode_Destroy()
|
||||
{
|
||||
GameData.m_memory = false;
|
||||
GameData.m_memoryKs = string.Empty;
|
||||
GameData.m_memoryLabel = string.Empty;
|
||||
}
|
||||
|
||||
// Token: 0x060000B1 RID: 177 RVA: 0x0000464C File Offset: 0x0000284C
|
||||
public static bool MemoryMode_IsActive()
|
||||
{
|
||||
return GameData.m_memory;
|
||||
}
|
||||
|
||||
// Token: 0x1700001B RID: 27
|
||||
// (get) Token: 0x060000B2 RID: 178 RVA: 0x00004654 File Offset: 0x00002854
|
||||
public static string MemoryKs
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameData.m_memoryKs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700001C RID: 28
|
||||
// (get) Token: 0x060000B3 RID: 179 RVA: 0x0000465C File Offset: 0x0000285C
|
||||
public static string MemoryLabel
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameData.m_memoryLabel;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040000ED RID: 237
|
||||
private static Read m_GameRead = new Read();
|
||||
|
||||
// Token: 0x040000EE RID: 238
|
||||
private static bool m_isLockGameData = false;
|
||||
|
||||
// Token: 0x040000EF RID: 239
|
||||
private static SaveData m_Data = new SaveData();
|
||||
|
||||
// Token: 0x040000F0 RID: 240
|
||||
private static GameParam m_Param = new GameParam();
|
||||
|
||||
// Token: 0x040000F1 RID: 241
|
||||
private static GameParam m_LockParam = new GameParam();
|
||||
|
||||
// Token: 0x040000F2 RID: 242
|
||||
private static List<KsWorkLog> m_OldWorkList = new List<KsWorkLog>();
|
||||
|
||||
// Token: 0x040000F3 RID: 243
|
||||
private static bool m_isChangeParam = false;
|
||||
|
||||
// Token: 0x040000F4 RID: 244
|
||||
private static bool m_isMoveTitle = false;
|
||||
|
||||
// Token: 0x040000F5 RID: 245
|
||||
private static string m_strLastMessage = string.Empty;
|
||||
|
||||
// Token: 0x040000F6 RID: 246
|
||||
private static bool m_isLoadData;
|
||||
|
||||
// Token: 0x040000F7 RID: 247
|
||||
private static bool m_memory;
|
||||
|
||||
// Token: 0x040000F8 RID: 248
|
||||
private static string m_memoryKs;
|
||||
|
||||
// Token: 0x040000F9 RID: 249
|
||||
private static string m_memoryLabel;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Qoo.Application;
|
||||
using Qoo.Ks;
|
||||
using Qoo.Memory;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x02000022 RID: 34
|
||||
public class KS_LOG_DATA
|
||||
{
|
||||
// Token: 0x060000F2 RID: 242 RVA: 0x00005534 File Offset: 0x00003734
|
||||
public bool Ready()
|
||||
{
|
||||
int logNum = App.QooKsLog.GetLogNum();
|
||||
this.m_LogData = new SCENEPOSDATA[logNum];
|
||||
int callNum = App.QooKsLog.GetCallNum();
|
||||
this.m_CallData = new SCENECALLDATA[callNum];
|
||||
for (int num = 0; num != this.m_LogData.Length; num++)
|
||||
{
|
||||
this.m_LogData[num] = App.QooKsLog.GetPos(num);
|
||||
}
|
||||
for (int num2 = 0; num2 != this.m_CallData.Length; num2++)
|
||||
{
|
||||
this.m_CallData[num2] = App.QooKsLog.GetCallData(num2);
|
||||
}
|
||||
List<int> list = new List<int>();
|
||||
foreach (SCENEPOSDATA sceneposdata in this.m_LogData)
|
||||
{
|
||||
list.Add((int)sceneposdata.sFileNo);
|
||||
}
|
||||
int[] array = list.Distinct<int>().ToArray<int>();
|
||||
this.m_KsNameArray = new string[array.Length];
|
||||
for (int num3 = 0; num3 != array.Length; num3++)
|
||||
{
|
||||
this.m_KsNameArray[num3] = Akb.GetFileInfo(array[num3]).Name;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000F3 RID: 243 RVA: 0x00005660 File Offset: 0x00003860
|
||||
public bool Save(MemFile mem)
|
||||
{
|
||||
mem.SetInt32(this.m_LogData.Length);
|
||||
mem.SetInt32(this.m_CallData.Length);
|
||||
mem.SetInt32(this.m_KsNameArray.Length);
|
||||
foreach (SCENEPOSDATA sceneposdata in this.m_LogData)
|
||||
{
|
||||
sceneposdata.Save(mem);
|
||||
}
|
||||
foreach (SCENECALLDATA scenecalldata in this.m_CallData)
|
||||
{
|
||||
scenecalldata.Save(mem);
|
||||
}
|
||||
foreach (string stringUtf in this.m_KsNameArray)
|
||||
{
|
||||
mem.SetStringUtf16(stringUtf);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000F4 RID: 244 RVA: 0x00005728 File Offset: 0x00003928
|
||||
public bool Load(MemFile mem)
|
||||
{
|
||||
int @int = mem.GetInt32();
|
||||
int int2 = mem.GetInt32();
|
||||
int int3 = mem.GetInt32();
|
||||
this.m_LogData = new SCENEPOSDATA[@int];
|
||||
this.m_CallData = new SCENECALLDATA[int2];
|
||||
this.m_KsNameArray = new string[int3];
|
||||
for (int num = 0; num != this.m_LogData.Length; num++)
|
||||
{
|
||||
this.m_LogData[num] = new SCENEPOSDATA();
|
||||
this.m_LogData[num].Load(mem);
|
||||
}
|
||||
for (int num2 = 0; num2 != this.m_CallData.Length; num2++)
|
||||
{
|
||||
this.m_CallData[num2] = default(SCENECALLDATA);
|
||||
this.m_CallData[num2].Load(mem);
|
||||
}
|
||||
for (int num3 = 0; num3 != int3; num3++)
|
||||
{
|
||||
this.m_KsNameArray[num3] = mem.GetStringUtf16();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0400010B RID: 267
|
||||
public SCENEPOSDATA[] m_LogData;
|
||||
|
||||
// Token: 0x0400010C RID: 268
|
||||
public SCENECALLDATA[] m_CallData;
|
||||
|
||||
// Token: 0x0400010D RID: 269
|
||||
public string[] m_KsNameArray;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Game;
|
||||
using Qoo.Input;
|
||||
using Qoo.Wnd;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x020000DE RID: 222
|
||||
public static class KsExec
|
||||
{
|
||||
// Token: 0x06000611 RID: 1553 RVA: 0x00019374 File Offset: 0x00017574
|
||||
internal static bool KsExecProc(string Func, string Param, string Value, int count)
|
||||
{
|
||||
if (Func != null)
|
||||
{
|
||||
if (KsExec.<>f__switch$map1 == null)
|
||||
{
|
||||
KsExec.<>f__switch$map1 = new Dictionary<string, int>(2)
|
||||
{
|
||||
{
|
||||
"inputname",
|
||||
0
|
||||
},
|
||||
{
|
||||
"kakin",
|
||||
1
|
||||
}
|
||||
};
|
||||
}
|
||||
int num;
|
||||
if (KsExec.<>f__switch$map1.TryGetValue(Func, out num))
|
||||
{
|
||||
if (num != 0)
|
||||
{
|
||||
if (num == 1)
|
||||
{
|
||||
if (Debug.IsAutoKsDebug)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
KsInput.Enable = false;
|
||||
KsInput.Clear();
|
||||
bool flag = KsExec.ExecPay(Param, Value, count);
|
||||
if (flag)
|
||||
{
|
||||
KsInput.Enable = true;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Debug.IsAutoKsDebug)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
KsInput.Enable = false;
|
||||
bool flag2 = KsExec.InputName(count);
|
||||
if (flag2)
|
||||
{
|
||||
KsInput.Enable = true;
|
||||
}
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x06000612 RID: 1554 RVA: 0x0001943C File Offset: 0x0001763C
|
||||
public static bool InputName(int count)
|
||||
{
|
||||
if (count == 0)
|
||||
{
|
||||
KsExec.confirm = false;
|
||||
KsExec.confirmResult = false;
|
||||
KsExec.editName = "アリス";
|
||||
NameInputKeyboard.DebugInputText = KsExec.editName;
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
else if (KsExec.confirm)
|
||||
{
|
||||
if (KsExec.confirmResult)
|
||||
{
|
||||
GameData.SetParamString("firstname", string.Empty, KsExec.editName);
|
||||
NameInputKeyboard.Close();
|
||||
return true;
|
||||
}
|
||||
KsExec.KeyboardMain();
|
||||
KsExec.confirm = false;
|
||||
KsExec.confirmResult = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
KsExec.editName = NameInputKeyboard.InputText;
|
||||
if (KsExec.editName.Length == 0 || KsExec.checkSpaceOnly(KsExec.editName))
|
||||
{
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("名前が入力されていません。", null));
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
else if (KsExec.editName.Length > 7)
|
||||
{
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("入力できる名前は7文字までです。", null));
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
else if (!Singleton<UnityGraph>.Instance.Font.Font.CheckGlyph(KsExec.editName))
|
||||
{
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg("表示できない文字が含まれています。", null));
|
||||
KsExec.KeyboardMain();
|
||||
}
|
||||
else
|
||||
{
|
||||
string arg = KsExec.editName;
|
||||
string paramString = GameData.GetParamString("familyname", string.Empty);
|
||||
string[] msgs = new string[]
|
||||
{
|
||||
string.Format("「{0}={1}」です。", arg, paramString),
|
||||
"よろしいですか?"
|
||||
};
|
||||
UnityTask.SetSubNoUnityTask(MessageDlg.ExecDlg(msgs, new Action<bool>(KsExec.SetResult)));
|
||||
KsExec.confirm = true;
|
||||
KsExec.confirmResult = false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x06000613 RID: 1555 RVA: 0x000195C0 File Offset: 0x000177C0
|
||||
private static bool checkSpaceOnly(string firstname)
|
||||
{
|
||||
foreach (char c in firstname)
|
||||
{
|
||||
if (c != ' ' && c != '\u3000')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000614 RID: 1556 RVA: 0x00019604 File Offset: 0x00017804
|
||||
private static void KeyboardMain()
|
||||
{
|
||||
switch (Application.platform)
|
||||
{
|
||||
case RuntimePlatform.IPhonePlayer:
|
||||
case RuntimePlatform.Android:
|
||||
UnityTask.SetSubTask(NameInputKeyboard.Open(KsExec.editName, true));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000615 RID: 1557 RVA: 0x0001964C File Offset: 0x0001784C
|
||||
private static void SetResult(bool result)
|
||||
{
|
||||
KsExec.confirmResult = result;
|
||||
}
|
||||
|
||||
// Token: 0x06000616 RID: 1558 RVA: 0x00019654 File Offset: 0x00017854
|
||||
private static bool ExecPay(string Param, string Value, int count)
|
||||
{
|
||||
if (count == 0)
|
||||
{
|
||||
PaymentParam.Conv();
|
||||
GameData.StartVoiceCheck();
|
||||
CHAR_ID charaId = CHAR_ID.NOTHING;
|
||||
Debug.Print("Param = " + Param + ": Value = " + Value);
|
||||
if (Param == "param" && Value == "full")
|
||||
{
|
||||
Debug.Print("初回処理");
|
||||
if (GameData.IsPayRouteFull())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Print("初回処理以外");
|
||||
if (GameData.IsPayRouteFull())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (GameData.IsPayRoute(GameData.GetRoute()))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
charaId = GameData.GetRoute();
|
||||
}
|
||||
Debug.Print("課金処理起動");
|
||||
Singleton<UnityGraph>.Instance.SetEffect("FadeOut", 1f);
|
||||
UIValue.Payment_Call = PaymentCallType.ADV;
|
||||
UnityTask.SetSubNoUnityTask(new PaymentTask().Open(charaId));
|
||||
return false;
|
||||
}
|
||||
PaymentParam.Conv();
|
||||
if (Param == "param" && Value == "full")
|
||||
{
|
||||
if (!GameData.IsPayRouteFull())
|
||||
{
|
||||
GameData.IsMoveTitle = true;
|
||||
}
|
||||
}
|
||||
else if (!GameData.IsPayRoute(GameData.GetRoute()))
|
||||
{
|
||||
GameData.IsMoveTitle = true;
|
||||
}
|
||||
if (!GameData.IsMoveTitle)
|
||||
{
|
||||
Singleton<UnityGraph>.Instance.Enable(false);
|
||||
Singleton<UnityGraph>.Instance.SetEffect("FadeIn", 1f);
|
||||
}
|
||||
KsInput.ClearMenu();
|
||||
KsInput.ClearBacklog();
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000617 RID: 1559 RVA: 0x000197AC File Offset: 0x000179AC
|
||||
private static IEnumerator Sample_ExecPay(CHAR_ID idChar)
|
||||
{
|
||||
SysData.SetPay(idChar, true, true);
|
||||
SysData.SetPayFull(true, true);
|
||||
yield return 0;
|
||||
yield break;
|
||||
}
|
||||
|
||||
// Token: 0x040005A9 RID: 1449
|
||||
private static bool confirm;
|
||||
|
||||
// Token: 0x040005AA RID: 1450
|
||||
private static bool confirmResult;
|
||||
|
||||
// Token: 0x040005AB RID: 1451
|
||||
private static string editName = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Game;
|
||||
using Qoo.Def;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x020000E5 RID: 229
|
||||
public class PaymentParam
|
||||
{
|
||||
// Token: 0x06000634 RID: 1588 RVA: 0x00019BD0 File Offset: 0x00017DD0
|
||||
public static void Conv()
|
||||
{
|
||||
for (int num = 0; num != 10; num++)
|
||||
{
|
||||
if (PayDef.IsRoutePay((CHAR_ID)num))
|
||||
{
|
||||
GameData.SetParamInt("money", Chara.GetNameFromId((CHAR_ID)num), 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
GameData.SetParamInt("money", Chara.GetNameFromId((CHAR_ID)num), 0);
|
||||
}
|
||||
}
|
||||
if (SysData.IsPayFull())
|
||||
{
|
||||
GameData.SetParamInt("moneyfull", string.Empty, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
GameData.SetParamInt("moneyfull", string.Empty, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using Qoo.Application;
|
||||
using Qoo.Memory;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x02000023 RID: 35
|
||||
internal class SaveData
|
||||
{
|
||||
// Token: 0x1700001F RID: 31
|
||||
// (get) Token: 0x060000F6 RID: 246 RVA: 0x0000582C File Offset: 0x00003A2C
|
||||
public static bool IsSave
|
||||
{
|
||||
get
|
||||
{
|
||||
return App.QooKsLog.GetLogNum() > 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000020 RID: 32
|
||||
// (get) Token: 0x060000F7 RID: 247 RVA: 0x0000583C File Offset: 0x00003A3C
|
||||
public byte[] Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Data.Data.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000021 RID: 33
|
||||
// (get) Token: 0x060000F8 RID: 248 RVA: 0x00005850 File Offset: 0x00003A50
|
||||
public GAME_SAVE_DATA LoadData
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_GameData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060000F9 RID: 249 RVA: 0x00005858 File Offset: 0x00003A58
|
||||
public byte[] Save()
|
||||
{
|
||||
if (!SaveData.IsSave)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
this.m_Data.Clear();
|
||||
this.m_GameData = new GAME_SAVE_DATA();
|
||||
this.m_GameData.Ready();
|
||||
if (this.m_GameData.Save(this.m_Data))
|
||||
{
|
||||
return this.m_Data.Data.ToArray();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060000FA RID: 250 RVA: 0x000058BC File Offset: 0x00003ABC
|
||||
public bool Load(byte[] data_)
|
||||
{
|
||||
this.m_Data = new MemFile(data_);
|
||||
this.m_GameData = new GAME_SAVE_DATA();
|
||||
return this.m_GameData.Load(this.m_Data);
|
||||
}
|
||||
|
||||
// Token: 0x0400010E RID: 270
|
||||
private MemFile m_Data = new MemFile(null);
|
||||
|
||||
// Token: 0x0400010F RID: 271
|
||||
private GAME_SAVE_DATA m_GameData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,579 @@
|
||||
using System;
|
||||
using Game;
|
||||
using Qoo.Def;
|
||||
using Qoo.File;
|
||||
using Qoo.Ks;
|
||||
using Qoo.Param;
|
||||
using Qoo.SoundSystem;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x02000029 RID: 41
|
||||
public static class SysData
|
||||
{
|
||||
// Token: 0x17000024 RID: 36
|
||||
// (get) Token: 0x06000113 RID: 275 RVA: 0x00005E7C File Offset: 0x0000407C
|
||||
public static Read ReadData
|
||||
{
|
||||
get
|
||||
{
|
||||
return SysData.m_SysRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000025 RID: 37
|
||||
// (get) Token: 0x06000114 RID: 276 RVA: 0x00005E84 File Offset: 0x00004084
|
||||
public static Look LookCg
|
||||
{
|
||||
get
|
||||
{
|
||||
return SysData.m_LookCg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000026 RID: 38
|
||||
// (get) Token: 0x06000115 RID: 277 RVA: 0x00005E8C File Offset: 0x0000408C
|
||||
public static Look LookMovie
|
||||
{
|
||||
get
|
||||
{
|
||||
return SysData.m_LookMovie;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000027 RID: 39
|
||||
// (get) Token: 0x06000116 RID: 278 RVA: 0x00005E94 File Offset: 0x00004094
|
||||
public static Look LookBgm
|
||||
{
|
||||
get
|
||||
{
|
||||
return SysData.m_LookBgm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000028 RID: 40
|
||||
// (get) Token: 0x06000117 RID: 279 RVA: 0x00005E9C File Offset: 0x0000409C
|
||||
public static SystemParam Param
|
||||
{
|
||||
get
|
||||
{
|
||||
return SysData.m_Param;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000118 RID: 280 RVA: 0x00005EA4 File Offset: 0x000040A4
|
||||
public static bool Init()
|
||||
{
|
||||
SysData.InitCg();
|
||||
SysData.InitBgm();
|
||||
return SysData.m_Param.Init();
|
||||
}
|
||||
|
||||
// Token: 0x06000119 RID: 281 RVA: 0x00005EBC File Offset: 0x000040BC
|
||||
public static void SetDefaultSetting()
|
||||
{
|
||||
SysData.m_Param.Defualt();
|
||||
}
|
||||
|
||||
// Token: 0x0600011A RID: 282 RVA: 0x00005ECC File Offset: 0x000040CC
|
||||
public static int GetSystemFlag(SYSTEM_IDX eIdx)
|
||||
{
|
||||
return SysData.m_Param.Get((int)eIdx);
|
||||
}
|
||||
|
||||
// Token: 0x0600011B RID: 283 RVA: 0x00005EDC File Offset: 0x000040DC
|
||||
public static void SetSystemFlag(SYSTEM_IDX eIdx, int Value)
|
||||
{
|
||||
SysData.m_Param.Set((int)eIdx, Value);
|
||||
}
|
||||
|
||||
// Token: 0x0600011C RID: 284 RVA: 0x00005EEC File Offset: 0x000040EC
|
||||
public static int GetVolumeBgm()
|
||||
{
|
||||
return SysData.m_Param.Get(3);
|
||||
}
|
||||
|
||||
// Token: 0x0600011D RID: 285 RVA: 0x00005EFC File Offset: 0x000040FC
|
||||
public static int GetVolumeSe()
|
||||
{
|
||||
return SysData.m_Param.Get(4);
|
||||
}
|
||||
|
||||
// Token: 0x0600011E RID: 286 RVA: 0x00005F0C File Offset: 0x0000410C
|
||||
public static int GetVolumeSys()
|
||||
{
|
||||
return SysData.m_Param.Get(2);
|
||||
}
|
||||
|
||||
// Token: 0x0600011F RID: 287 RVA: 0x00005F1C File Offset: 0x0000411C
|
||||
public static void SetVolumeBgm(int iVol)
|
||||
{
|
||||
SysData.m_Param.Set(3, iVol);
|
||||
}
|
||||
|
||||
// Token: 0x06000120 RID: 288 RVA: 0x00005F2C File Offset: 0x0000412C
|
||||
public static void SetVolumeSe(int iVol)
|
||||
{
|
||||
SysData.m_Param.Set(4, iVol);
|
||||
}
|
||||
|
||||
// Token: 0x06000121 RID: 289 RVA: 0x00005F3C File Offset: 0x0000413C
|
||||
public static void SetVolumeSys(int iVol)
|
||||
{
|
||||
SysData.m_Param.Set(2, iVol);
|
||||
}
|
||||
|
||||
// Token: 0x06000122 RID: 290 RVA: 0x00005F4C File Offset: 0x0000414C
|
||||
public static bool IsVoiceEnable()
|
||||
{
|
||||
return SysData.m_Param.Get(5) == 1;
|
||||
}
|
||||
|
||||
// Token: 0x06000123 RID: 291 RVA: 0x00005F5C File Offset: 0x0000415C
|
||||
public static void SetVoiceEnable(bool IsVoice)
|
||||
{
|
||||
SysData.m_Param.Set(5, (!IsVoice) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000124 RID: 292 RVA: 0x00005F78 File Offset: 0x00004178
|
||||
public static int GetVoiceVolume(CHAR_ID eChar)
|
||||
{
|
||||
return SysData.m_Param.Get((int)(6 + eChar));
|
||||
}
|
||||
|
||||
// Token: 0x06000125 RID: 293 RVA: 0x00005F88 File Offset: 0x00004188
|
||||
public static void SetVoiceVolume(CHAR_ID eChar, int iVol)
|
||||
{
|
||||
SysData.m_Param.Set((int)(6 + eChar), iVol);
|
||||
}
|
||||
|
||||
// Token: 0x06000126 RID: 294 RVA: 0x00005F9C File Offset: 0x0000419C
|
||||
public static int GetTextSpeed()
|
||||
{
|
||||
return SysData.m_Param.Get(24);
|
||||
}
|
||||
|
||||
// Token: 0x06000127 RID: 295 RVA: 0x00005FAC File Offset: 0x000041AC
|
||||
public static void SetTextSpeed(int iSpeed)
|
||||
{
|
||||
SysData.m_Param.Set(24, iSpeed);
|
||||
}
|
||||
|
||||
// Token: 0x06000128 RID: 296 RVA: 0x00005FBC File Offset: 0x000041BC
|
||||
public static int GetFontType()
|
||||
{
|
||||
return SysData.m_Param.Get(25);
|
||||
}
|
||||
|
||||
// Token: 0x06000129 RID: 297 RVA: 0x00005FCC File Offset: 0x000041CC
|
||||
public static void SetFontType(int iType)
|
||||
{
|
||||
SysData.m_Param.Set(25, iType);
|
||||
}
|
||||
|
||||
// Token: 0x0600012A RID: 298 RVA: 0x00005FDC File Offset: 0x000041DC
|
||||
public static bool IsChangeReadTextColor()
|
||||
{
|
||||
return SysData.m_Param.Get(26) == 1;
|
||||
}
|
||||
|
||||
// Token: 0x0600012B RID: 299 RVA: 0x00005FF0 File Offset: 0x000041F0
|
||||
public static void SetChangeReadTextColor(bool IsChange)
|
||||
{
|
||||
SysData.m_Param.Set(26, (!IsChange) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x0600012C RID: 300 RVA: 0x0000600C File Offset: 0x0000420C
|
||||
public static bool IsEnablePassageAnim()
|
||||
{
|
||||
return SysData.m_Param.Get(27) == 1;
|
||||
}
|
||||
|
||||
// Token: 0x0600012D RID: 301 RVA: 0x00006020 File Offset: 0x00004220
|
||||
public static void SetEnablePassageAnim(bool IsEnable)
|
||||
{
|
||||
SysData.m_Param.Set(27, (!IsEnable) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x0600012E RID: 302 RVA: 0x0000603C File Offset: 0x0000423C
|
||||
public static bool IsEnableLoveAnim()
|
||||
{
|
||||
return SysData.m_Param.Get(28) == 1;
|
||||
}
|
||||
|
||||
// Token: 0x0600012F RID: 303 RVA: 0x00006050 File Offset: 0x00004250
|
||||
public static void SetEnableLoveAnim(bool IsEnable)
|
||||
{
|
||||
SysData.m_Param.Set(28, (!IsEnable) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000130 RID: 304 RVA: 0x0000606C File Offset: 0x0000426C
|
||||
public static SKIP_MODE GetSkip()
|
||||
{
|
||||
return (SKIP_MODE)SysData.m_Param.Get(22);
|
||||
}
|
||||
|
||||
// Token: 0x06000131 RID: 305 RVA: 0x0000607C File Offset: 0x0000427C
|
||||
public static void SetSkip(int iType)
|
||||
{
|
||||
SysData.m_Param.Set(22, iType);
|
||||
}
|
||||
|
||||
// Token: 0x06000132 RID: 306 RVA: 0x0000608C File Offset: 0x0000428C
|
||||
public static bool IsSkipContinue()
|
||||
{
|
||||
return SysData.m_Param.Get(29) == 1;
|
||||
}
|
||||
|
||||
// Token: 0x06000133 RID: 307 RVA: 0x000060A0 File Offset: 0x000042A0
|
||||
public static void SetSkipContinue(bool bEnable)
|
||||
{
|
||||
SysData.m_Param.Set(29, (!bEnable) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000134 RID: 308 RVA: 0x000060BC File Offset: 0x000042BC
|
||||
public static int GetAutoPage()
|
||||
{
|
||||
return SysData.m_Param.Get(23);
|
||||
}
|
||||
|
||||
// Token: 0x06000135 RID: 309 RVA: 0x000060CC File Offset: 0x000042CC
|
||||
public static void SetAutoPage(int iType)
|
||||
{
|
||||
SysData.m_Param.Set(23, iType);
|
||||
}
|
||||
|
||||
// Token: 0x06000136 RID: 310 RVA: 0x000060DC File Offset: 0x000042DC
|
||||
public static bool IsScreenJump()
|
||||
{
|
||||
return SysData.m_Param.Get(30) == 1;
|
||||
}
|
||||
|
||||
// Token: 0x06000137 RID: 311 RVA: 0x000060F0 File Offset: 0x000042F0
|
||||
public static void SetScreenJump(bool bEnable)
|
||||
{
|
||||
SysData.m_Param.Set(30, (!bEnable) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000138 RID: 312 RVA: 0x0000610C File Offset: 0x0000430C
|
||||
public static bool IsDrawFace()
|
||||
{
|
||||
return SysData.m_Param.Get(31) == 1;
|
||||
}
|
||||
|
||||
// Token: 0x06000139 RID: 313 RVA: 0x00006120 File Offset: 0x00004320
|
||||
public static void SetDrawFace(bool bEnable)
|
||||
{
|
||||
SysData.m_Param.Set(31, (!bEnable) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x0600013A RID: 314 RVA: 0x0000613C File Offset: 0x0000433C
|
||||
public static bool InitCg()
|
||||
{
|
||||
SysData.m_LookCg.Clear();
|
||||
if (!SysData.InitLook(ref SysData.m_LookCg, "CG_START", "CG_END"))
|
||||
{
|
||||
Debug.Assert(false, "NMBファイル内にCG領域がありません");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600013B RID: 315 RVA: 0x00006170 File Offset: 0x00004370
|
||||
public static bool IsReadCG(string name)
|
||||
{
|
||||
return SysData.m_LookCg.IsLook(FileId.Normalize(name));
|
||||
}
|
||||
|
||||
// Token: 0x0600013C RID: 316 RVA: 0x00006184 File Offset: 0x00004384
|
||||
public static bool SetReadCG(string name)
|
||||
{
|
||||
return SysData.m_LookCg.Set(FileId.Normalize(name), true);
|
||||
}
|
||||
|
||||
// Token: 0x0600013D RID: 317 RVA: 0x00006198 File Offset: 0x00004398
|
||||
public static void ResetReadCGAll()
|
||||
{
|
||||
SysData.m_LookCg.Init();
|
||||
}
|
||||
|
||||
// Token: 0x0600013E RID: 318 RVA: 0x000061A4 File Offset: 0x000043A4
|
||||
public static void SetReadCGAll()
|
||||
{
|
||||
SysData.m_LookCg.SetAll(true);
|
||||
}
|
||||
|
||||
// Token: 0x0600013F RID: 319 RVA: 0x000061B4 File Offset: 0x000043B4
|
||||
private static bool InitMovie()
|
||||
{
|
||||
SysData.m_LookMovie.Clear();
|
||||
if (!SysData.InitLook(ref SysData.m_LookMovie, "MOV_START", "MOV_END"))
|
||||
{
|
||||
Debug.Assert(false, "NMBファイル内にムービーリスト領域がありません");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000140 RID: 320 RVA: 0x000061E8 File Offset: 0x000043E8
|
||||
public static bool IsLookMovie(string strMovie)
|
||||
{
|
||||
return SysData.m_LookMovie.IsLook(FileId.Normalize(strMovie));
|
||||
}
|
||||
|
||||
// Token: 0x06000141 RID: 321 RVA: 0x000061FC File Offset: 0x000043FC
|
||||
public static bool SetLookMovie(string strMovie)
|
||||
{
|
||||
return SysData.m_LookMovie.Set(FileId.Normalize(strMovie), true);
|
||||
}
|
||||
|
||||
// Token: 0x06000142 RID: 322 RVA: 0x00006210 File Offset: 0x00004410
|
||||
public static void ResetLookMovieAll()
|
||||
{
|
||||
SysData.m_LookMovie.Init();
|
||||
}
|
||||
|
||||
// Token: 0x06000143 RID: 323 RVA: 0x0000621C File Offset: 0x0000441C
|
||||
public static void SetReadMovieAll()
|
||||
{
|
||||
SysData.m_LookMovie.SetAll(true);
|
||||
}
|
||||
|
||||
// Token: 0x06000144 RID: 324 RVA: 0x0000622C File Offset: 0x0000442C
|
||||
public static void SetRead(int ks, int label = -1, int pos = 0)
|
||||
{
|
||||
SysData.m_SysRead.Add(ks, label, pos);
|
||||
}
|
||||
|
||||
// Token: 0x06000145 RID: 325 RVA: 0x0000623C File Offset: 0x0000443C
|
||||
public static bool IsRead(int iKsNo, int iLabelNo = 0, int iPos = 0)
|
||||
{
|
||||
int num = (int)(Akb.GetFileInfo(iKsNo).nLabelPos + (uint)iLabelNo);
|
||||
if (num < Akb.GetLabelNum())
|
||||
{
|
||||
int nTagNum = Akb.GetLabelInfo(num).nTagNum;
|
||||
if (nTagNum <= iPos)
|
||||
{
|
||||
iLabelNo++;
|
||||
iPos = 0;
|
||||
}
|
||||
}
|
||||
return SysData.m_SysRead.IsRead(iKsNo, iLabelNo, iPos);
|
||||
}
|
||||
|
||||
// Token: 0x06000146 RID: 326 RVA: 0x00006290 File Offset: 0x00004490
|
||||
public static void SetRead(string ks, string label = "", int iPos = 0)
|
||||
{
|
||||
int ks2 = 0;
|
||||
int label2 = 0;
|
||||
if (Akb.GetFileLabel(ref ks2, ref label2, ks, label))
|
||||
{
|
||||
SysData.SetRead(ks2, label2, iPos);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000147 RID: 327 RVA: 0x000062BC File Offset: 0x000044BC
|
||||
public static bool IsRead(string ks, string label = "", int iPos = 0)
|
||||
{
|
||||
int iKsNo = 0;
|
||||
int iLabelNo = 0;
|
||||
return Akb.GetFileLabel(ref iKsNo, ref iLabelNo, ks, label) && SysData.IsRead(iKsNo, iLabelNo, iPos);
|
||||
}
|
||||
|
||||
// Token: 0x06000148 RID: 328 RVA: 0x000062E8 File Offset: 0x000044E8
|
||||
public static void ClearRead()
|
||||
{
|
||||
SysData.m_SysRead.Init();
|
||||
}
|
||||
|
||||
// Token: 0x06000149 RID: 329 RVA: 0x000062F4 File Offset: 0x000044F4
|
||||
public static void SetReadAll()
|
||||
{
|
||||
SysData.m_SysRead.SetAll();
|
||||
}
|
||||
|
||||
// Token: 0x0600014A RID: 330 RVA: 0x00006300 File Offset: 0x00004500
|
||||
private static bool InitBgm()
|
||||
{
|
||||
SysData.m_LookBgm.Clear();
|
||||
if (!SysData.InitLook(ref SysData.m_LookBgm, "DIR_BEGIN_BGM", "DIR_END_BGM"))
|
||||
{
|
||||
Debug.Assert(false, "NMBファイル内にBGMリスト領域がありません");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600014B RID: 331 RVA: 0x00006334 File Offset: 0x00004534
|
||||
public static bool IsPlayBgmFlag(string name)
|
||||
{
|
||||
return SysData.m_LookBgm.IsLook(FileId.Normalize(name));
|
||||
}
|
||||
|
||||
// Token: 0x0600014C RID: 332 RVA: 0x00006348 File Offset: 0x00004548
|
||||
public static void SetPlayBgmFlag(string name)
|
||||
{
|
||||
SysData.m_LookBgm.Set(FileId.Normalize(name), true);
|
||||
}
|
||||
|
||||
// Token: 0x0600014D RID: 333 RVA: 0x0000635C File Offset: 0x0000455C
|
||||
public static void ResetPlayBgmFlagAll()
|
||||
{
|
||||
SysData.m_LookBgm.Init();
|
||||
}
|
||||
|
||||
// Token: 0x0600014E RID: 334 RVA: 0x00006368 File Offset: 0x00004568
|
||||
public static void SetPlayBgmFlagAll()
|
||||
{
|
||||
SysData.m_LookBgm.SetAll(true);
|
||||
}
|
||||
|
||||
// Token: 0x0600014F RID: 335 RVA: 0x00006378 File Offset: 0x00004578
|
||||
private static bool InitLook(ref Look look, string start, string end)
|
||||
{
|
||||
int num = Nmb.NameToNo(start);
|
||||
int num2 = Nmb.NameToNo(end);
|
||||
if (num < 0 || num2 < 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
for (int i = num + 1; i < num2; i++)
|
||||
{
|
||||
look.Add(Nmb.GetFileInfo(i).StrName);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000150 RID: 336 RVA: 0x000063CC File Offset: 0x000045CC
|
||||
internal static void SetReadRef(string p)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
// Token: 0x06000151 RID: 337 RVA: 0x000063D4 File Offset: 0x000045D4
|
||||
public static bool IsReadedMark(string ks, string label)
|
||||
{
|
||||
bool result = false;
|
||||
if (SysData.IsChangeReadTextColor())
|
||||
{
|
||||
result = SysData.IsRead(ks, label, 0);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// Token: 0x06000152 RID: 338 RVA: 0x000063F8 File Offset: 0x000045F8
|
||||
internal static void SetPay(CHAR_ID idChar, bool isPay, bool isVoice)
|
||||
{
|
||||
SysData.m_Param.Set((int)(33 + idChar), (!isPay) ? 0 : 1);
|
||||
SysData.m_Param.Set((int)(49 + idChar), (!isVoice) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000153 RID: 339 RVA: 0x00006440 File Offset: 0x00004640
|
||||
internal static void SetPayFull(bool isPay, bool isVoice)
|
||||
{
|
||||
SysData.m_Param.Set(65, (!isPay) ? 0 : 1);
|
||||
SysData.m_Param.Set(66, (!isVoice) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000154 RID: 340 RVA: 0x00006484 File Offset: 0x00004684
|
||||
internal static void SetPayRoute(CHAR_ID idChar, bool isPay)
|
||||
{
|
||||
SysData.m_Param.Set((int)(33 + idChar), (!isPay) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000155 RID: 341 RVA: 0x000064A4 File Offset: 0x000046A4
|
||||
internal static void SetPayVoice(CHAR_ID idChar, bool isVoice)
|
||||
{
|
||||
SysData.m_Param.Set((int)(49 + idChar), (!isVoice) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000156 RID: 342 RVA: 0x000064C4 File Offset: 0x000046C4
|
||||
internal static void SetPayFullRoute(bool isPay)
|
||||
{
|
||||
SysData.m_Param.Set(65, (!isPay) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000157 RID: 343 RVA: 0x000064E0 File Offset: 0x000046E0
|
||||
internal static void SetPayFullVoice(bool isVoice)
|
||||
{
|
||||
SysData.m_Param.Set(66, (!isVoice) ? 0 : 1);
|
||||
}
|
||||
|
||||
// Token: 0x06000158 RID: 344 RVA: 0x000064FC File Offset: 0x000046FC
|
||||
internal static bool IsPay(CHAR_ID idChar)
|
||||
{
|
||||
return SysData.IsPayFull() || SysData.m_Param.Get((int)(33 + idChar)) > 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000159 RID: 345 RVA: 0x00006528 File Offset: 0x00004728
|
||||
internal static bool IsPayFull()
|
||||
{
|
||||
return SysData.m_Param.Get(65) > 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600015A RID: 346 RVA: 0x00006544 File Offset: 0x00004744
|
||||
internal static bool IsPayVoice(CHAR_ID idChar)
|
||||
{
|
||||
if (SysData.IsPayVoiceFull())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (idChar == CHAR_ID.NOTHING)
|
||||
{
|
||||
for (CHAR_ID char_ID = CHAR_ID.BLOOD; char_ID < CHAR_ID.NIGHTMARE; char_ID++)
|
||||
{
|
||||
if (SysData.m_Param.Get((int)(49 + char_ID)) > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (idChar == CHAR_ID.NIGHTMARE)
|
||||
{
|
||||
bool result = true;
|
||||
for (CHAR_ID char_ID2 = CHAR_ID.BLOOD; char_ID2 < CHAR_ID.NIGHTMARE; char_ID2++)
|
||||
{
|
||||
if (SysData.m_Param.Get((int)(49 + char_ID2)) <= 0)
|
||||
{
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return SysData.m_Param.Get((int)(49 + idChar)) > 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600015B RID: 347 RVA: 0x000065EC File Offset: 0x000047EC
|
||||
internal static bool IsPayVoiceFull()
|
||||
{
|
||||
return SysData.m_Param.Get(66) > 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600015C RID: 348 RVA: 0x00006608 File Offset: 0x00004808
|
||||
public static void Apply()
|
||||
{
|
||||
Sound.BgmApplyVolume();
|
||||
Sound.SeSlotApplyVolume();
|
||||
}
|
||||
|
||||
// Token: 0x0600015D RID: 349 RVA: 0x00006614 File Offset: 0x00004814
|
||||
public static bool IsTrial()
|
||||
{
|
||||
return Akb.CheckFile("op00_trial.ks");
|
||||
}
|
||||
|
||||
// Token: 0x0400011F RID: 287
|
||||
private static Read m_SysRead = new Read();
|
||||
|
||||
// Token: 0x04000120 RID: 288
|
||||
private static Look m_LookCg = new Look();
|
||||
|
||||
// Token: 0x04000121 RID: 289
|
||||
private static Look m_LookMovie = new Look();
|
||||
|
||||
// Token: 0x04000122 RID: 290
|
||||
private static Look m_LookBgm = new Look();
|
||||
|
||||
// Token: 0x04000123 RID: 291
|
||||
private static SystemParam m_Param = new SystemParam();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Qoo.Def;
|
||||
using Qoo.Memory;
|
||||
|
||||
namespace Qoo.Game
|
||||
{
|
||||
// Token: 0x02000024 RID: 36
|
||||
public class SystemParam
|
||||
{
|
||||
// Token: 0x060000FC RID: 252 RVA: 0x00005908 File Offset: 0x00003B08
|
||||
public bool Init()
|
||||
{
|
||||
this.m_Param.Clear();
|
||||
for (int num = 0; num != 67; num++)
|
||||
{
|
||||
this.Add(num, DefSysParam.Default[(SYSTEM_IDX)num]);
|
||||
}
|
||||
this.Defualt();
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000FD RID: 253 RVA: 0x00005950 File Offset: 0x00003B50
|
||||
public bool Defualt()
|
||||
{
|
||||
foreach (KeyValuePair<SYSTEM_IDX, SystemParam.PARAM_DATA> keyValuePair in this.m_Param)
|
||||
{
|
||||
keyValuePair.Value.SetDefault();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000FE RID: 254 RVA: 0x000059C0 File Offset: 0x00003BC0
|
||||
public bool Add(int index_, int default_)
|
||||
{
|
||||
Debug.Assert(!this.m_Param.ContainsKey((SYSTEM_IDX)index_), "ERROR:SystemParam:Add:すでにそのインデックスは登録済みです");
|
||||
this.m_Param.Add((SYSTEM_IDX)index_, new SystemParam.PARAM_DATA(default_, default_, true));
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060000FF RID: 255 RVA: 0x000059FC File Offset: 0x00003BFC
|
||||
public bool Add(int index_)
|
||||
{
|
||||
Debug.Assert(!this.m_Param.ContainsKey((SYSTEM_IDX)index_), "ERROR:SystemParam:Add:すでにそのインデックスは登録済みです");
|
||||
this.m_Param.Add((SYSTEM_IDX)index_, new SystemParam.PARAM_DATA(0, 0, false));
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000100 RID: 256 RVA: 0x00005A38 File Offset: 0x00003C38
|
||||
public int Get(int index_)
|
||||
{
|
||||
Debug.Assert(this.m_Param.ContainsKey((SYSTEM_IDX)index_), "ERROR:SystemParam:Get:指定インデックスは、存在しません");
|
||||
return this.m_Param[(SYSTEM_IDX)index_].Param;
|
||||
}
|
||||
|
||||
// Token: 0x06000101 RID: 257 RVA: 0x00005A70 File Offset: 0x00003C70
|
||||
public bool Set(int index_, int param_)
|
||||
{
|
||||
Debug.Assert(this.m_Param.ContainsKey((SYSTEM_IDX)index_), "ERROR:SystemParam:Set:指定インデックスは、存在しません");
|
||||
SystemParam.PARAM_DATA value = this.m_Param[(SYSTEM_IDX)index_];
|
||||
value.Param = param_;
|
||||
this.m_Param[(SYSTEM_IDX)index_] = value;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000102 RID: 258 RVA: 0x00005AB8 File Offset: 0x00003CB8
|
||||
public bool Save(MemFile mem)
|
||||
{
|
||||
mem.SetInt32(this.m_Param.Count);
|
||||
foreach (KeyValuePair<SYSTEM_IDX, SystemParam.PARAM_DATA> keyValuePair in this.m_Param)
|
||||
{
|
||||
mem.SetInt32(keyValuePair.Value.Param);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06000103 RID: 259 RVA: 0x00005B40 File Offset: 0x00003D40
|
||||
public bool Load(MemFile mem)
|
||||
{
|
||||
int @int = mem.GetInt32();
|
||||
if (@int == this.m_Param.Count)
|
||||
{
|
||||
for (int num = 0; num != this.m_Param.Count; num++)
|
||||
{
|
||||
this.Set(num, mem.GetInt32());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x04000110 RID: 272
|
||||
private Dictionary<SYSTEM_IDX, SystemParam.PARAM_DATA> m_Param = new Dictionary<SYSTEM_IDX, SystemParam.PARAM_DATA>();
|
||||
|
||||
// Token: 0x02000025 RID: 37
|
||||
private struct PARAM_DATA
|
||||
{
|
||||
// Token: 0x06000104 RID: 260 RVA: 0x00005B90 File Offset: 0x00003D90
|
||||
public PARAM_DATA(int param_, int default_, bool IsDefault_ = true)
|
||||
{
|
||||
this.Param = param_;
|
||||
this.Default = default_;
|
||||
this.IsDefault = IsDefault_;
|
||||
}
|
||||
|
||||
// Token: 0x06000105 RID: 261 RVA: 0x00005BA8 File Offset: 0x00003DA8
|
||||
public void SetDefault()
|
||||
{
|
||||
if (this.IsDefault)
|
||||
{
|
||||
this.Param = this.Default;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000111 RID: 273
|
||||
public int Param;
|
||||
|
||||
// Token: 0x04000112 RID: 274
|
||||
public int Default;
|
||||
|
||||
// Token: 0x04000113 RID: 275
|
||||
public bool IsDefault;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user