internal static void OnCameraEvent(CameraEventType eventID)
        {
            var controller = Api.Instance.CameraApi;

            if (eventID == CameraEventType.TransitionStart)
            {
                controller.OnTransitionStart.Invoke(controller, controller.m_controlledCamera);
            }
            else if (eventID == CameraEventType.TransitionEnd)
            {
                controller.OnTransitionEnd.Invoke(controller, controller.m_controlledCamera);
            }
            // :TODO: handle other events
        }
        private CameraEvent GetCameraEvent(CameraEventType cameraEvent)
        {
            switch (cameraEvent)
            {
            case CameraEventType.BeforeImageEffects:
                return(CameraEvent.BeforeImageEffects);

            case CameraEventType.AfterImageEffects:
                return(CameraEvent.AfterImageEffects);

            case CameraEventType.AfterEverything:
                return(CameraEvent.AfterEverything);

            default:
                return(CameraEvent.AfterImageEffects);
            }
        }
Beispiel #3
0
        internal static void OnCameraEvent(IntPtr cameraApiInternalHandle, CameraEventType eventID)
        {
            var cameraApiInternal = cameraApiInternalHandle.NativeHandleToObject <CameraApiInternal>();

            if (eventID == CameraEventType.TransitionStart)
            {
                var startEvent = cameraApiInternal.OnTransitionStartInternal;

                if (startEvent != null)
                {
                    startEvent();
                }
            }
            else if (eventID == CameraEventType.TransitionEnd)
            {
                var endEvent = cameraApiInternal.OnTransitionEndInternal;

                if (endEvent != null)
                {
                    endEvent();
                }
            }
            // :TODO: handle other events
        }
 public CameraEventBase(string message, CameraEventType eventType)
 {
     Message   = message;
     EventType = eventType;
 }
 public Camera_GameEvent(CameraEventType t, Transform p)
 {
     CameraEventType = t;
     CameraTarget    = p;
 }
 public Camera_GameEvent(CameraEventType t, float d)
 {
     CameraEventType = t;
     CameraDistance  = d;
 }
Beispiel #7
0
 private CameraEventData(CameraEventType eventType)
 {
     EventType = eventType;
 }
Beispiel #8
0
 public static CameraEventData Create(CameraEventType eventType) =>
 new CameraEventData(eventType);
Beispiel #9
0
 public CameraEventBase(string message, CameraEventType eventType)
 {
     Message = message;
     EventType = eventType;
 }
 /// <summary>
 /// Set CameraEventType field</summary>
 /// <param name="cameraEventType_">Nullable field value to be set</param>
 public void SetCameraEventType(CameraEventType? cameraEventType_)
 {
     SetFieldValue(1, 0, cameraEventType_, Fit.SubfieldIndexMainField);
 }