public static void HandleSpawnUser(S_SPAWN_USER p) { EntityManager.SpawnUser(p.EntityId, p.Name); if (!GroupWindowViewModel.Instance.Exists(p.EntityId)) return; GroupWindowViewModel.Instance.UpdateMemberGear(p); }
private static void OnSpawnUser(S_SPAWN_USER p) { _win.Dispatcher.BeginInvoke(new Action(() => { _win.VM.AddMatch(new CardVM(p.Name, $"{p.GuildRank} of {p.GuildName}", p.Level, App.Random.Next(10, 1000), TccUtils.RaceFromTemplateId((int)p.TemplateId), p.PlayerId)); })); }
public static void HandleSpawnUser(S_SPAWN_USER p) { if (!GroupWindowViewModel.Instance.Exists(p.EntityId)) { return; } GroupWindowViewModel.Instance.UpdateMemberGear(p); }