mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Rewrite parts of ClientState (#2065)
- Completely relies on hooks now, instead of the Framework.Update loop - Support for Logout codes
This commit is contained in:
parent
c88e008672
commit
c7facaf072
5 changed files with 120 additions and 67 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ internal class AutoUpdateManager : IServiceType
|
|||
t =>
|
||||
{
|
||||
t.Result.Login += this.OnLogin;
|
||||
t.Result.Logout += this.OnLogout;
|
||||
t.Result.Logout += (int type, int code) => this.OnLogout();
|
||||
});
|
||||
Service<Framework>.GetAsync().ContinueWith(t => { t.Result.Update += this.OnUpdate; });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue