mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 17:17:47 -05:00
72f17db03f
* Moved Generator.cs into Editor folder under AtomsEditor.asmdef Generator.cs must not be outside of the Editor Assembly Definition because it uses UnityEditor and thus would prevent games from building * - cleaned up unused imports - fixed a potential bug in Templating.cs because IndexOf is culture specific - at least warnings in Rider are now eliminated - cleaned up the logic of Templating.cs - the while condition had never changed, it contained a redundant true - using an early return if the list is null * Replaced ResolveConditionals in Templating.cs to allow nested IF-blocks fixed typos
21 lines
643 B
Plaintext
21 lines
643 B
Plaintext
<%IF !EQUATABLE%>
|
|
using System;
|
|
<%ENDIF%>
|
|
using UnityEngine;
|
|
|
|
namespace UnityAtoms
|
|
{
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Variables/{TYPE_NAME}", fileName = "{TYPE_NAME}Variable")]
|
|
<%IF EQUATABLE%>
|
|
public sealed class {TYPE_NAME}Variable : EquatableScriptableObjectVariable<{TYPE}, {TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Event> { }
|
|
<%ELSE%>
|
|
public sealed class {TYPE_NAME}Variable : ScriptableObjectVariable<{TYPE}, {TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Event>
|
|
{
|
|
protected override bool AreEqual({TYPE} first, {TYPE} second)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
<%ENDIF%>
|
|
}
|