private void OnRoleAdd(object sender, GX.EventArgs <KeyValuePair <ulong, Role> > args) { if (args.Data.Value.ServerInfo.charid != MainRole.ServerInfo.userdata.charid) { AddFlag(args.Data.Value.GetComponent <Entity>(), uiFlagRole); } }
private void OnRoleRemove(object sender, GX.EventArgs <KeyValuePair <ulong, Role> > args) { try { RemoveFlag(args.Data.Value.GetComponent <Entity>()); } catch (MissingReferenceException) { } }
private void OnNpcAdd(object sender, GX.EventArgs <KeyValuePair <ulong, Npc> > args) { AddFlag(args.Data.Value.GetComponent <Entity>(), GetNpcFlag(args.Data.Value)); }