コード例 #1
0
 protected override void Definition()
 {
     EnterNode      = ControlInput("EnterNode", DoInjection);
     ExitNode       = ControlOutput("ExitNode");
     Object         = ValueInput <object>("Object");
     Context        = ValueInput <Context>("Context");
     InjectedObject = ValueOutput("InjectedObject", delegate { return(_output); });
 }
コード例 #2
0
 protected override void Definition()
 {
     target = ValueInput <EditorWindowView>("target");
     result = ValueOutput("result", (flow) =>
     {
         return(flow.GetValue <EditorWindowView>(target).asset == asset);
     });
 }
コード例 #3
0
    protected override void Definition()
    {
        inputEnter = ControlInput("enter", OnEnter);
        inputExit  = ControlInput("exit", OnExit);

        scenesIn       = ValueInput <string[]>("scenes");
        loadAdditiveIn = ValueInput <bool>("loadAdditive");
    }
コード例 #4
0
        protected override void Definition()
        {
            base.Definition();


            key = ValueInput(keyType, nameof(key));
            key.SetDefaultValue(GetDefaultValue(keyType));
        }
コード例 #5
0
        protected override void Definition()
        {
            enter = ControlInput("enter", new Action <Flow>(Enter));

            returnUnit = ValueInput <TriggerReturnEvent>("returnUnit");

            returnValue = ValueInput <object>("return");
        }
コード例 #6
0
ファイル: ClearBinarySave.cs プロジェクト: stuksgens/UAlive
        protected override void Definition()
        {
            save  = ValueInput <BinarySave>("save");
            enter = ControlInput("enter", (flow) => { flow.GetValue <BinarySave>(save).variables.Clear(); return(exit); });
            exit  = ControlOutput("exit");

            Succession(enter, exit);
        }
コード例 #7
0
 protected override void Definition()
 {
     base.Definition();
     Material      = ValueInput <Material>(nameof(Material)).AllowsNull();
     TrailMaterial = ValueInput <Material>(nameof(TrailMaterial)).AllowsNull();
     Requirement(Material, Enter);
     Requirement(TrailMaterial, Enter);
 }
コード例 #8
0
 protected override void RegisterPorts()
 {
     becameTrue  = AddFlowOutput("Became True");
     becameFalse = AddFlowOutput("Became False");
     //isTrue      = AddFlowOutput("Is True");
     //isFalse     = AddFlowOutput("Is False");
     condition = AddValueInput <bool>("Condition");
 }
コード例 #9
0
 protected override void Definition()
 {
     base.Definition();
     RateOverDistance = ValueInput <float>(nameof(RateOverDistance), 0f);
     RateOverTime     = ValueInput <float>(nameof(RateOverTime), 10f);
     Requirement(RateOverDistance, Enter);
     Requirement(RateOverTime, Enter);
 }
コード例 #10
0
 protected override void RegisterPorts()
 {
     if (useReturnValue)
     {
         returnPort = AddValueInput <object>("Value");
     }
     AddFlowInput(" ", (f) => { f.Return(useReturnValue ? returnPort.value : null, this); });
 }
コード例 #11
0
    protected override void Definition()
    {
        inputStart = ControlInput("enter", Enter);
        inputStart = ControlInput("exit", Destroy);
        inputStop  = ControlInput("destroy", Destroy);

        valueIn = ValueInput <Object>("prefab");
    }
コード例 #12
0
        protected override void Definition()
        {
            binary       = ValueInput <BinarySave>(nameof(binary));
            variableName = ValueInput <string>(nameof(variableName), string.Empty);
            value        = ValueOutput <object>(nameof(value), GetVariable);

            Requirement(binary, value);
            Requirement(variableName, value);
        }
コード例 #13
0
        protected override void Definition()
        {
            base.Definition();

            if (_func != null)
            {
                @return = ValueInput(_func.ReturnType, "return");
            }
        }
コード例 #14
0
    protected override void Definition()
    {
        input  = ControlInput("In", Enter);
        output = ControlOutput("Out");

        selfTransformIn = ValueInput <Transform>("Self");

        Requirement(selfTransformIn, input);
    }
コード例 #15
0
        public async Task <Value> Add(ValueInput value)
        {
            var entity = mapper.Map <ValueEntity>(value);

            this.dbContext.Add(entity);
            await this.dbContext.SaveChangesAsync();

            return(mapper.Map <Value>(entity));
        }
コード例 #16
0
        public async Task <Value> Add(ValueInput value)
        {
            var entity = mapper.MapValue(value, new ValueEntity());

            this.dbContext.Add(entity);
            await SaveChanges();

            return(mapper.MapValue(entity, new Value()));
        }
コード例 #17
0
        protected override void Definition()
        {
            base.Definition();
            // Input
            inputHDA = ValueInput <HEU_HoudiniAssetRoot>("HDA", null);

            // Output
            outputHDAAsset = ValueOutput <HEU_HoudiniAsset>("Output HDA", (flow) => { return(hdaAsset); });
        }
コード例 #18
0
        protected override void Definition()
        {
            binary       = ValueInput <BinarySave>(nameof(binary));
            variableName = ValueInput <string>(nameof(variableName), string.Empty);
            result       = ValueOutput <bool>(nameof(result), HasVariable);

            Requirement(binary, result);
            Requirement(variableName, result);
        }
コード例 #19
0
 protected override void Definition()
 {
     base.Definition();
     Color    = ValueInput <UnityEngine.Color>(nameof(Color), UnityEngine.Color.white);
     SpeedMin = ValueInput <float>(nameof(SpeedMin), 0f);
     SpeedMax = ValueInput <float>(nameof(SpeedMax), 1f);
     Requirement(Color, Enter);
     Requirement(SpeedMin, Enter);
     Requirement(SpeedMax, Enter);
 }
コード例 #20
0
ファイル: ValuesController.cs プロジェクト: appsonsf/Common
        public async Task <IActionResult> PutAsync(string key, [FromBody] ValueInput input)
        {
            var result = await _simpleKeyValueService.Update(ContainerName, key, input.Value);

            if (result)
            {
                return(Ok());
            }
            return(NoContent());
        }
コード例 #21
0
 protected override void Definition()
 {
     EnterNode      = ControlInput("EnterNode", DoInjection);
     ExitNode       = ControlOutput("ExitNode");
     Prototype      = ValueInput <Object>("Prototype", null);
     Context        = ValueInput <Context>("Context", null);
     Position       = ValueInput <Vector3>("Position", Vector3.zero);
     Orientation    = ValueInput <Quaternion>("Orientation", Quaternion.identity);
     InjectedObject = ValueOutput("InjectedObject", delegate { return(_output); });
 }
コード例 #22
0
        protected override void Definition()
        {
            a           = ValueInput <float>(nameof(a));
            b           = ValueInput <float>(nameof(b), 0);
            AllowEquals = ValueInput <bool>(nameof(AllowEquals), false);

            base.Definition();

            Relation(AllowEquals, ifTrue);
            Relation(AllowEquals, ifFalse);
        }
コード例 #23
0
        protected override void DefinePorts()
        {
            base.DefinePorts();

            value  = ValueInput <object>("value");
            type   = ValueInput("type", typeof(UnityEngine.Object));
            result = ValueOutput <bool>("result", new System.Func <Flow, bool>((flow) =>
            {
                return(flow.GetValue <object>(value).IsConvertibleTo(flow.GetValue <System.Type>(type), false));
            }));
        }
コード例 #24
0
        protected override void Definition()
        {
            enter        = ControlInput("enter", RemoveVariable);
            binary       = ValueInput <UniversalSave>(nameof(binary));
            variableName = ValueInput <string>(nameof(variableName), string.Empty);
            exit         = ControlOutput("exit");

            Succession(enter, exit);
            Requirement(binary, enter);
            Requirement(variableName, enter);
        }
コード例 #25
0
        protected override void Definition()
        {
            A = ValueInput <Database>("a");
            B = ValueInput <Database>("b");
            Func <Recursion, Database> database = newDatabase => GetNewDatabase();

            databaseOut = ValueOutput <Database>("databaseOut", database);

            Relation(A, databaseOut);
            Relation(B, databaseOut);
        }
コード例 #26
0
        protected override void Definition()
        {
            a           = ValueInput <float>(nameof(a));
            b           = ValueInput <float>(nameof(b), 0);
            AllowEquals = ValueInput <bool>(nameof(AllowEquals), false);

            base.Definition();

            Requirement(AllowEquals, enter);
            Requirement(AllowEquals, enter);
        }
コード例 #27
0
        public override string GenerateValue(ValueInput input)
        {
            if (input == Unit.input)
            {
                if (Unit.input.hasAnyConnection)
                {
                    return((Unit.input.connection.source.unit as Unit).GenerateValue(Unit.input.connection.source));
                }
            }

            return(base.GenerateValue(input));
        }
コード例 #28
0
        protected override void RegisterPorts()
        {
            eventListener = AddValueInput <CustomEventListener>("EventListener", "");

            outPutFlow = AddFlowOutput("Out", "");
            AddFlowInput("In", (f) => {
                eventListener.value.UnRegister();
                //eventListener.value.target=null;
                //eventListener.value.targets=null;
                outPutFlow.Call(f);
            });
        }
コード例 #29
0
        protected override void Definition()
        {
            databaseIn = ValueInput <Database>("database");
            value      = ValueInput <object>("value");

            Func <Recursion, IList <Vector3> > getCells = GetCells => ReturnCells();

            cells = ValueOutput <IList <Vector3> >("cells", getCells);

            Relation(databaseIn, cells);
            Relation(value, cells);
        }
コード例 #30
0
ファイル: AsUnit.cs プロジェクト: calculosu123/UAlive
        protected override void DefinePorts()
        {
            base.DefinePorts();

            value  = ValueInput <object>("value");
            type   = ValueInput("type", typeof(UnityEngine.Object));
            result = ValueOutput <object>("result", new System.Func <Flow, object>((flow) =>
            {
                var output = flow.GetValue <object>(value).ConvertTo(flow.GetValue <System.Type>(type));
                return(output);
            }));
        }