コード例 #1
0
        public void UnlockAllTrophies(bool enableAll = false)
        {
            Trophy.CreateData();

            if (enableAll)
            {
                CsvCommonIdManager commonIdManager =
                    typeof(Trophy).GetField("commonIdManager", BindingFlags.NonPublic | BindingFlags.Static)
                    ?.GetValue(null) as CsvCommonIdManager;

                if (commonIdManager != null)
                {
                    commonIdManager.enabledIdList.Clear();
                    foreach (KeyValuePair <int, KeyValuePair <string, string> > idKvPair in commonIdManager.idMap.ToArray()
                             )
                    {
                        commonIdManager.enabledIdList.Add(idKvPair.Key);
                    }
                }
            }

            List <Trophy.Data> data = Trophy.GetAllDatas(false);

            foreach (Trophy.Data trophyData in data)
            {
                GameMain.Instance.CharacterMgr.status.AddHaveTrophy(trophyData.id);
            }
        }
コード例 #2
0
        internal static void SetAllPlayerStatus()
        {
            MyLog.LogDarkBlue("SetAllPlayerStatus st");

            PlayerStatus.Status status = GameMain.Instance.CharacterMgr.status;
            status.casinoCoin = 999999L;
            status.clubGauge  = 100;
            status.clubGrade  = 5;
            status.money      = 9999999999L;

            ScheduleCSVData.vipFullOpenDay = 0;

            try
            {
                foreach (Trophy.Data item in Trophy.GetAllDatas(false))
                {
                    if (GameMain.Instance.CharacterMgr.status.IsHaveTrophy(item.id))
                    {
                        continue;
                    }

                    MyLog.LogMessage("Trophy"
                                     , item.id
                                     , item.name
                                     , item.type
                                     , item.rarity
                                     , item.maidPoint
                                     , item.infoText
                                     , item.bonusText
                                     );
                    GameMain.Instance.CharacterMgr.status.AddHaveTrophy(item.id);
                }
            }
            catch (Exception e)
            {
                MyLog.LogError("Trophy:" + e.ToString());
            }


            MyLog.LogDarkBlue("SetAllPlayerStatus ed");
        }