FXM5KEZSKC2Z4LH4SEM6SSXN7WXH7B35MO4PQ4HMW5CFYFTCSNPQC
fileFormatVersion: 2
guid: d6d2df47b220a6e4da83d3a02400a38f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
namespace TagFighter.Effects
{
public abstract class SingleSetterStep : SetterNode
{
// [SerializeField]
// protected SingleGetterStep Input;
// public override IEnumerable<IPort<EffectStepNode>> Inputs() {
// if (Input != null) {
// yield return Input;
// }
// }
}
}
fileFormatVersion: 2
guid: d7357abba650b624c8bb40b2d0c77179
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
// using System.Collections;
namespace TagFighter.Effects
{
public abstract class SequenceSetterStep : SetterNode
{
// [SerializeField]
// protected SequenceGetterStep Input;
// public override IEnumerable<EffectStepNode> Inputs() {
// if (Input != null) {
// yield return Input;
// }
// }
}
}
fileFormatVersion: 2
guid: 93ba90a75f8f1fe4189ea1ed3890ae3e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
namespace TagFighter.Effects
{
using System.Collections.Generic;
using System.Linq;
public class OperatorStep : SingleGetterStep
{
[UnityEngine.SerializeField]
MultiPort<SingleGetterStep> _in = new();
[UnityEngine.SerializeReference, CareBoo.Serially.ShowSerializeReference]
public IResourceOperator Operator;
public override IEnumerable<IPort<EffectStepNode>> Inputs {
get {
yield return _in;
}
}
public override string ShortName => "Operator";
public override double Get() {
return Operator.OperateEnum(_in.Nodes.Select(getter => getter.Get()));
}
}
}
fileFormatVersion: 2
guid: e3d165e54b32e6d4cbcc75c5b0cf7a68
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
namespace TagFighter.Effects
{
using System.Collections.Generic;
public class ConeAreaStep : SetterNode
{
[UnityEngine.SerializeField]
SinglePort<SingleGetterStep> _radius = new() {
DisplayName = "Radius"
};
[UnityEngine.SerializeField]
SinglePort<SingleGetterStep> _angle = new() {
DisplayName = "Angle"
};
public override IEnumerable<IPort<EffectStepNode>> Inputs {
get {
yield return _radius;
yield return _angle;
}
}
public override string ShortName => "Cone AOE";
public override void Set() {
Data.Context.AreaOfEffect = new ConeArea() {
Radius = (float)_radius.Node.Get(),
Angle = (float)_angle.Node.Get(),
};
}
}
}
var edge = outputView.Output.ConnectTo(inputView.Input);
var onputPortView = outputView.outputContainer.Children().FirstOrDefault(portView => portView is Port) as Port;
var inputPortView = inputView.inputContainer.Children().FirstOrDefault(portView => portView.userData == inputPort) as Port;
var edge = onputPortView.ConnectTo(inputPortView);
Input.portName = GetPortDisplayName(Input.portType);
inputContainer.Add(Input);
portView.portName = (port.DisplayName != null && port.DisplayName != "") ? port.DisplayName : InPortDisplayName;
portView.portName += GetPortDisplayName(portView.portType);
portView.userData = port;
inputContainer.Add(portView);