unity-atoms/Source/Editor/Generator/Resources/UA_Template__Variable.txt
2019-09-30 00:02:54 +02:00

19 lines
591 B
Plaintext

using System;
using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "Unity Atoms/Variables/{TYPE_NAME}", fileName = "{TYPE_NAME}Variable")]
<%IF EQUATABLE%>
public sealed class {TYPE_NAME}Variable : EquatableAtomVariable<{TYPE}, {TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Event> { }
<%ELSE%>
public sealed class {TYPE_NAME}Variable : AtomVariable<{TYPE}, {TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Event>
{
protected override bool AreEqual({TYPE} first, {TYPE} second)
{
throw new NotImplementedException();
}
}
<%ENDIF%>
}