OneShotOneKill/Assets/Script/My/MyValue.cs

45 lines
1.8 KiB
C#
Raw Normal View History

2026-01-07 21:27:42 +00:00
using CodeStage.AntiCheat.ObscuredTypes;
using System.Collections.Generic;
using UnityEngine;
public static class MyValue
{
public static string OnestoreURL = "https://onesto.re/0000759501";
public static int UTC = 9;
public static int ItemID_Gem = 101, ItemID_Gold = 201, ItemID_Soul = 301, ItemID_Potion = 401, ItemID_Exp = 501,
ItemID_EvolutionMaxStone = 601;
public static string SaveDataFileName = "SaveData";
public static ServerData sdata => ServerInfo.Ins.m_ServerData;
public static MyStageData m_MyStageData = new MyStageData();
public static void Set_StageData(int chapter, int stage)
{
// 정인호 : 난이도, 챕터 정보도 필요
m_MyStageData.m_Diff = 1;
m_MyStageData.m_Chapter = chapter;
m_MyStageData.m_Stage = stage;
m_MyStageData.m_GameMode = eGameMode.Stage;
}
public static Dictionary<eGrade, Color> dic_GradeColor = new Dictionary<eGrade, Color>
{
{ eGrade.None, new Color32(161,152,148,255) },
{ eGrade.Common, new Color32(161,152,148,255) },
{ eGrade.UnCommon, new Color32(158,215,35,255) },
{ eGrade.Rare, new Color32(25,197,240,255) },
{ eGrade.Hero, new Color32(191,106,219,255) },
{ eGrade.Legend, new Color32(252,218,32,255) },
{ eGrade.Grade6, new Color32(240,65,65,255) },
};
}
public class MyStageData
{
public eGameMode m_GameMode;
ObscuredInt _diff = 1; public int m_Diff { get { return _diff; } set { _diff = value; _diff.RandomizeCryptoKey(); } }
ObscuredInt _chapter = 1; public int m_Chapter { get { return _chapter; } set { _chapter = value; _chapter.RandomizeCryptoKey(); } }
ObscuredInt _stage; public int m_Stage { get { return _stage; } set { _stage = value; _stage.RandomizeCryptoKey(); } }
}