public void AvatarCallback(VpNet.Core.Structs.Avatar eventData) { if (EventAvatarAdd != null) { EventAvatarAdd(this, eventData); } }
void Instance_EventAvatarAdd(IInstance sender, VpNet.Core.Structs.Avatar eventData) { var client = _clients.Values.FirstOrDefault(p => p.Instance == sender); if (client != null) { client.Callback.AvatarCallback(eventData); } }