public virtual void RaiseNewPlayerEntity(PlayerEntity e) { var playerEntityEvent = new PlayerEntityEvent(this, e); var handler = NewPlayerEntity; if (handler != null) { handler(this, playerEntityEvent); } }
private void PluginHostOnNewPlayerEntity(object sender, PlayerEntityEvent playerEntityEvent) { // delegate event from player info from ram, not required to subsribe // this is for YOU and includes all your stats and your agro list with hate values as % // this updates 10x a second and only sends data when the newly read data is differen than what was previously sent if (sender == null) { return; } var playerEntity = playerEntityEvent.PlayerEntity; }
private static void OnNewPlayerEntity(object sender, PlayerEntityEvent playerEntityEvent) { // delegate event from player info from ram, not required to subsribe // this is for YOU and includes all your stats and your agro list with hate values as % // this updates 10x a second and only sends data when the newly read data is differen than what was previously sent if (sender == null) { return; } var playerEntity = playerEntityEvent.PlayerEntity; XIVInfoViewModel.Instance.AgroEntries = new ObservableCollection<EnmityEntry>(playerEntity.EnmityEntries ?? new List<EnmityEntry>()); }