3AONCSBYJ6T2HXAZFLCJGGV6SRNYJW3PEJ5GMGN3FYB2NGPVIQIQC
EISA46SXVFL3UEYJBHVU4RFWKRU5ZJNN7Q7ATAYKCTSAMSPLL7RAC
3UN6NREN32ZBQW4EWI7ED4WVQILCU2EIE7DQGFWZR3OUDCO3ZSPQC
JAZ27QX53QXAN4JVMMX2KYKN4GCULWFMXYSPFZ5HWW4T7FUB5EHAC
D4K77RTIZUI46DIDLVOR42DW3EP6IOMEAASAPZQ5XA2J7GEYFQIAC
IXGU2SOXBCQYBV3S5EHZFEFJKSCVUQPVZ3NY7KPG2UHWTEVGRZCAC
CD5FF75KTOBTMVMTMCKMR6F5DFKOF26I5K43ITNHGBI3ZAZHA4RAC
XTNHXKSQ4PQS6CN3ATENRI7JUXU7DYZMRW4PBSEABN4S4VQHFUMAC
FXM5KEZSKC2Z4LH4SEM6SSXN7WXH7B35MO4PQ4HMW5CFYFTCSNPQC
fileFormatVersion: 2
guid: 608f319dff918234eb73ac925f9a3f97
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 5379282b606b40d41b3f107d66364266
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
namespace TagFighter.Effects.Steps
{
using System.Collections.Generic;
using System.Linq;
[StepType(StepTypeAttribute.TesterStep)]
public class SequenceTester : OutputStep<IEnumerable<double>>
{
SinglePort<IEnumerable<double>> _in = new();
[UnityEngine.SerializeField]
List<double> _value = new();
[UnityEngine.SerializeField]
string _displayName = nameof(SequenceTester);
public override IEnumerable<IPort> Inputs {
get {
yield return _in;
}
}
public override bool IsValid => true;
public override IEnumerable<double> Run() {
var value = _in.Node.Run();
if (value.SequenceEqual(_value)) {
UnityEngine.Debug.Log($"<color=green>PASSED: {this} Got [{string.Join(",", value)}]</color>");
}
else {
UnityEngine.Debug.Log($"<color=red>FAILED: {this} Got [{string.Join(",", value)}]</color>");
}
return value;
}
public override string ToString() {
return $"{_displayName} Expected [{string.Join(",", _value)}]";
}
public override EffectStepNodeData ToData() {
var effectStepNodeData = base.ToData();
effectStepNodeData.Const = _value;
effectStepNodeData.DisplayName = _displayName;
return effectStepNodeData;
}
public override bool FromData(EffectStepNodeData effectStepNodeData, Dictionary<string, EffectStepNode> guidToNode) {
base.FromData(effectStepNodeData, guidToNode);
_value = effectStepNodeData.Const ?? new();
_displayName = effectStepNodeData.DisplayName;
return true;
}
}
}
fileFormatVersion: 2
guid: 2937882e2c8591347b1cd105b9591834
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
namespace TagFighter.Effects.Steps
{
using System.Collections.Generic;
using System.Linq;
[StepType(StepTypeAttribute.TesterStep)]
public class DoubleTester : OutputStep<double>
{
SinglePort<double> _in = new();
[UnityEngine.SerializeField]
double _value;
[UnityEngine.SerializeField]
string _displayName = nameof(DoubleTester);
public override IEnumerable<IPort> Inputs {
get {
yield return _in;
}
}
public override bool IsValid => true;
public override double Run() {
var value = _in.Node.Run();
if (value == _value) {
UnityEngine.Debug.Log($"<color=green>PASSED: {this} Got {value}</color>");
}
else {
UnityEngine.Debug.Log($"<color=red>FAILED: {this} Got {value}</color>");
}
return value;
}
public override string ToString() {
return $"{_displayName} Expected {_value}";
}
public override EffectStepNodeData ToData() {
var effectStepNodeData = base.ToData();
effectStepNodeData.Const = new() { _value };
effectStepNodeData.DisplayName = _displayName;
return effectStepNodeData;
}
public override bool FromData(EffectStepNodeData effectStepNodeData, Dictionary<string, EffectStepNode> guidToNode) {
base.FromData(effectStepNodeData, guidToNode);
_value = effectStepNodeData.Const != null ? effectStepNodeData.Const.FirstOrDefault() : default;
_displayName = effectStepNodeData.DisplayName;
return true;
}
}
}
--- !u!114 &-2327178154491622146
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4585b32f67d50794cad3c057a0f091a1, type: 3}
m_Name: 6ea59218-4bd5-451a-8e73-2838dbf717fe
m_EditorClassIdentifier:
Guid: 6ea59218-4bd5-451a-8e73-2838dbf717fe
_nodes: []
port.ConnectedNodesGuid = port.ConnectedNodesGuid.Select(origGuid => originalToNewGuid.GetValueOrDefault(origGuid)).ToList();
port.ConnectedNodesGuid = port.ConnectedNodesGuid.Select(origGuid => originalToNewGuid.GetValueOrDefault(origGuid)).Where(guid => guid != null).ToList();
if (SelectedRuneRef != null) {
_runeEffects.itemsSource = SelectedRuneRef.RuneEffects;
_runeEffects.RefreshItems();
_selectedRuneEffect = _runeEffects.selectedItem as RuneEffect;
if (_selectedRuneEffect == null && SelectedRuneRef.RuneEffects.Count > 0) {
_runeEffects.SetSelection(0);
if (_visualElementsReady) {
if (SelectedRuneRef != null) {
_runeEffects.itemsSource = SelectedRuneRef.RuneEffects;
_runeEffects.RefreshItems();
PortCapacity.Single => InstantiatePort(Orientation.Horizontal, direction, Port.Capacity.Single, port.GetType().GenericTypeArguments[0]),
_ => InstantiatePort(Orientation.Horizontal, direction, Port.Capacity.Multi, port.GetType().GenericTypeArguments[0])
PortCapacity.Single => InstantiatePort(DefaultOrientation, direction, Port.Capacity.Single, port.GetType().GenericTypeArguments[0]),
_ => InstantiatePort(DefaultOrientation, direction, Port.Capacity.Multi, port.GetType().GenericTypeArguments[0])