/// <summary>Обработчик события изменения кадра.</summary> /// <param name="image">Кадр.</param> private void OnChangeFrame(Mat image) { if (ChangeFrame != null) { ChangeFrame.Invoke(null, image); } }
private void OnQuery_FRAME_SELECT() { DegreeTable.DegreeData data = GameSection.GetEventData() as DegreeTable.DegreeData; ChangeFrame eventData = new ChangeFrame(data); GameSection.SetEventData(eventData); MonoBehaviourSingleton <GameSceneManager> .I.SetNotify(NOTIFY_FLAG.UPDATE_DEGREE_FRAME); GameSection.BackSection(); }
private void NotifyActorChanged(ActorIdentity changedActor) { var actorCollection = new ActorIdentityCollection(); actorCollection.Items.AddRange(this.GetAllActors().Where(a => a.Type == changedActor.Type).ToList()); var actorChangedNotificationData = this.ChannelConfiguration.FrameBuilder.ControlFrameDataEncoder.EncodeFrameData(actorCollection); var actorChangedNotification = new ChangeFrame(actorChangedNotificationData); var actorChangedNotificationBuffer = this.ChannelConfiguration.FrameBuilder.EncodeFrame(actorChangedNotification); _log.DebugFormat("Broadcast actors changes, ActorType[{0}], RemainCount[{1}].", changedActor.Type, actorCollection.Items.Count); this.BeginBroadcast(this.GetAllActors().Where(a => a.Type != changedActor.Type).Select(a => a.Type).Distinct(), actorChangedNotificationBuffer); }