Beispiel #1
0
    public DateTime GetStageBossTime(eStageKind _kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();
        string bossTime = AESSecurity.DecryptStringFromBytes_Aes(UserStageBossTime[(int)_kind], keyIV.Key, keyIV.IV);

        return(Convert.ToDateTime(bossTime));
    }
Beispiel #2
0
    public void ChangeStageBossTime(eStageKind _kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();

        UserStageBossTime[(int)_kind] = AESSecurity.Encrypt_ToBytes_Aes <string>(
            DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), keyIV.Key, keyIV.IV);
    }
    protected void GetReward()
    {
        // 재화 증가 능력치 적용
        int   goldUpLevel = MainController.Instance.UserInfo.GetUserAbilityLevel(eHeroAbilityKind.GOLDUP);
        float goldUp      = MainController.Instance.GetHeroAbilityLevel(eHeroAbilityKind.GOLDUP, goldUpLevel).Effect;
        // 반올림
        double GoldUpGold = Math.Round(m_BossInfo.DropGold * goldUp);

        // 유저 정보 수정
        MainController.Instance.UserInfo.ChangeUserGold((int)GoldUpGold);

        eStageKind kind = MainController.Instance.GetStageInfo_StageKind(m_BossInfo.ID);

        MainController.Instance.UserInfo.ChangeStageBossTime(kind);
        MainController.Instance.UserInfo.SaveUser();

        if (CustomSceneManager.Instance != null)
        {
            CustomSceneManager.Instance.ChangeScene(eSceneState.AdventureInBoss, eSceneState.Main);
        }
    }
Beispiel #4
0
    public void ChangeUserStageBossClear(eStageKind _kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();

        UserStageBossClear[(int)_kind] = AESSecurity.Encrypt_ToBytes_Aes <bool>(true, keyIV.Key, keyIV.IV);
    }
Beispiel #5
0
    public bool GetUserStageBossClear(eStageKind _Kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();

        return(AESSecurity.DecryptBoolFromBytes_Aes(UserStageBossClear[(int)_Kind], keyIV.Key, keyIV.IV));
    }
Beispiel #6
0
    public void ChangeUserIsStageOpen(eStageKind _Kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();

        UserIsStageOpen[(int)_Kind] = AESSecurity.Encrypt_ToBytes_Aes <bool>(true, keyIV.Key, keyIV.IV);
    }
Beispiel #7
0
    public bool GetUserIsStageOpen(eStageKind _kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();

        return(AESSecurity.DecryptBoolFromBytes_Aes(UserIsStageOpen[(int)_kind], keyIV.Key, keyIV.IV));
    }
Beispiel #8
0
 public int GetStageInfo_BossID(eStageKind _Kind)
 {
     return(GetStageInfo(_Kind).BossID);
 }
Beispiel #9
0
 public StageInfo GetStageInfo(eStageKind _Kind)
 {
     return(m_StageInfo.Find(x => x.StageKind == _Kind));
 }