Exemplo n.º 1
0
        public static SceneViewEventHandler Create(InspectorGUIIdentifier activeGUIIdentifier)
        {
            switch (activeGUIIdentifier)
            {
            case InspectorGUIIdentifier.ObjectSnapping:
            case InspectorGUIIdentifier.ObjectPlacement:

                return(new ObjectPlacementSceneViewEventHandler());

            case InspectorGUIIdentifier.ObjectErase:

                return(new ObjectEraserSceneViewEventHandler());

            case InspectorGUIIdentifier.ObjectSelection:

                return(new ObjectSelectionSceneViewEventHandler());

            default:

                return(null);
            }
        }
Exemplo n.º 2
0
        public static void SendToInterestedListeners(InspectorGUIIdentifier activeInspectorGUIIdentifier)
        {
            var message = new InspectorGUIWasChangedMessage(activeInspectorGUIIdentifier);

            MessageListenerDatabase.Instance.SendMessageToInterestedListeners(message);
        }
Exemplo n.º 3
0
 public InspectorGUIWasChangedMessage(InspectorGUIIdentifier activeInspectorGUIIdentifier)
     : base(MessageType.InspectorGUIWasChanged)
 {
     _activeInspectorGUIIdentifier = activeInspectorGUIIdentifier;
 }
 public static SceneRenderPathType GetSceneRenderPathTypeFromIdentifier(InspectorGUIIdentifier guiIdentifier)
 {
     return(_sceneRenderPathTypes[(int)guiIdentifier]);
 }