Ejemplo n.º 1
0
 public override void Initialize()
 {
     //_userStatsReceived = Callback<UserStatsReceived_t>.Create((DispatchDelegate<UserStatsReceived_t>)OnUserStatsReceived);
     SteamUserStats.RequestCurrentStats();
     while (!_areStatsReceived)
     {
         CoreSocialModule.Pulse();
         Thread.Sleep(10);
     }
 }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            // ISSUE: method pointer
            this._userStatsReceived = Callback <UserStatsReceived_t> .Create(new Callback <UserStatsReceived_t> .DispatchDelegate((object)this, __methodptr(OnUserStatsReceived)));

            SteamUserStats.RequestCurrentStats();
            while (!this._areStatsReceived)
            {
                CoreSocialModule.Pulse();
                Thread.Sleep(10);
            }
        }
Ejemplo n.º 3
0
        public override void Initialize()
        {
            this._userStatsReceived =
                Callback <UserStatsReceived_t> .Create(
                    new Callback <UserStatsReceived_t> .DispatchDelegate(OnUserStatsReceived));

            SteamUserStats.RequestCurrentStats();
            while (!this._areStatsReceived)
            {
                CoreSocialModule.Pulse();
                Thread.Sleep(10);
                //Fix By GScience(Attention)
                this._areStatsReceived = true;
            }

            ;
        }