예제 #1
0
        public static void FuckUpSteamData()
        {
            if (STEAM_NAME == null || STEAM_ID_HOLDER == null || STEAM_ID_FIELD == null)
            {
                Console.WriteLine("ERROR: {0} {1} {2}", STEAM_NAME != null, STEAM_ID_HOLDER != null, STEAM_ID_FIELD != null);
                return;
            }

            STEAM_NAME.SetValue(null, RandomWrapper.GenerateString(8), null);

            if (holder != null)
            {
                var id    = (CSteamID)STEAM_ID_FIELD.GetValue(holder, null);
                var oldId = id.m_SteamID;
                id        = new CSteamID(new AccountID_t((uint)UnityEngine.Random.Range(0, int.MaxValue)), id.GetEUniverse(), id.GetEAccountType());
                CurrentID = id.m_SteamID;
                STEAM_ID_FIELD.SetValue(holder, id, null);
            }
        }