public void AddSubClass(SubClass subclass) { SubClassCollection.TryAdd(subclass.ID, subclass); }
public void SendSubClasses() { if (Level < 120) return; if (SubClassesSend) return; SubClassesSend = true; SubClass wrangler = new SubClass(); wrangler.ID = Enums.SubClasses.Wrangler; wrangler.Phase = 9; wrangler.Level = 120; using (var subclass = new Packets.SubClassPacket(new SubClass[] { wrangler })) { subclass.Action = Enums.SubClassActions.ShowGUI; Send(subclass); subclass.Action = Enums.SubClassActions.Learn; Send(subclass); subclass.Action = Enums.SubClassActions.MartialPromoted; Send(subclass); } }