示例#1
0
        public ActionGraphEditorNode(ActionGraph graph, ActionGraphNode node, ActionGraphPresenter presenter)
        {
            Graph      = graph;
            ActionNode = node;
            Presenter  = presenter;

            Size     = new Vector2(164, 64);
            Position = ActionNode.EditorPosition;
        }
        public ActionGraphEditorNode(ActionGraph graph, ActionGraphNodeBase node, ActionGraphPresenter presenter)
        {
            Graph      = graph;
            ActionNode = node;
            Presenter  = presenter;

            Size     = new Vector2(164, 64);
            Position = ActionNode.EditorPosition;

            if (!Inputs.Any())
            {
                Inputs.Add(new Slot(this, SlotType.Input));
            }

            ActionNode.ValidationSubscribe(OnTargetChanged);
        }
        public BeginNode(ActionGraph graph, ActionGraphPresenter presenter)
        {
            Graph = graph;

            RecreateDrawer();

            Size = new Vector2(400, 300);

            WindowTitle = GUIContent.none;
            WindowStyle = SpaceEditorStyles.GraphNodeBackground;

            PreferredWidth = drawRect.width;

            Presenter = presenter;

            Position = Graph.BeginEditorPos;
        }
        public ActionGraphEditorState(ActionGraph graph, ActionGraphNodeBase node, ActionGraphPresenter presenter)
            : base(graph, node, presenter)
        {
            var connection_builder = new PathBuilder <ActionState>();

            connection_builder.ByListOf <ActionState.ConnectionInfo>(l => nameof(State.ConnectionInfos));
            ToConnectionInfos = connection_builder.Path();

            var child_builder = new PathBuilder <ActionState>();

            child_builder.ByListOf <ActionGraphNode>(l => nameof(State.Connections));
            ToChildren = child_builder.Path();

            if (ActionNode)
            {
                ActionNode.Notifiers.Add(this);
            }
        }
 public ActionGraphEditorAnimParamNode(ActionGraph graph, ActionGraphNode node, ActionGraphPresenter presenter)
     : base(graph, node, presenter)
 {
 }
示例#6
0
        public ActionGraphEditorEntryBase(ActionGraph graph, ActionGraphNodeBase node, ActionGraphPresenter presenter)
            : base(graph, node, presenter)
        {
            var builder = new PathBuilder <AnyEntry>();

            ConditionPropertyPath = builder
                                    .ByListOf <AnyEntry.EntryInfo>(t => nameof(t.Entries))
                                    .Path();

            if (ActionNode)
            {
                ActionNode.Notifiers.Add(this);
            }
        }
示例#7
0
        public ActionGraphEditorSelectorNode(ActionGraph graph, ActionGraphNode node, ActionGraphPresenter presenter)
            : base(graph, node, presenter)
        {
            RecreateDrawer();

            Size = new Vector2(400, 300);

            PreferredWidth = drawRect.width;
        }