diff --git a/Packages/SOVariables/Editor/UIntVariableEditor.cs b/Packages/SOVariables/Editor/UIntVariableEditor.cs new file mode 100644 index 0000000..130d53e --- /dev/null +++ b/Packages/SOVariables/Editor/UIntVariableEditor.cs @@ -0,0 +1,13 @@ +using UnityEditor; + +namespace RaCoding.Variables +{ + [CustomEditor(typeof(UIntMutableVariable), editorForChildClasses: true)] + public class UIntVariableEditor : VariableEditor + { + protected override void AssignResetValue() + { + resetValue.longValue = value.longValue; + } + } +} \ No newline at end of file diff --git a/Packages/SOVariables/Editor/UIntVariableEditor.cs.meta b/Packages/SOVariables/Editor/UIntVariableEditor.cs.meta new file mode 100644 index 0000000..c53fee1 --- /dev/null +++ b/Packages/SOVariables/Editor/UIntVariableEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3d22f6ac1675cbf47bd24eb62c01d748 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/SOVariables/Runtime/Immutable/UIntImmutableVariable.cs b/Packages/SOVariables/Runtime/Immutable/UIntImmutableVariable.cs new file mode 100644 index 0000000..9457d85 --- /dev/null +++ b/Packages/SOVariables/Runtime/Immutable/UIntImmutableVariable.cs @@ -0,0 +1,7 @@ +using UnityEngine; + +namespace RaCoding.Variables +{ + [CreateAssetMenu(fileName = "UIntImmutableVariable", menuName = "RaCoding/Variables/Immutable/Create new immutable uint variable")] + public class UIntImmutableVariable : ImmutableVariable { } +} diff --git a/Packages/SOVariables/Runtime/Immutable/UIntImmutableVariable.cs.meta b/Packages/SOVariables/Runtime/Immutable/UIntImmutableVariable.cs.meta new file mode 100644 index 0000000..f67288a --- /dev/null +++ b/Packages/SOVariables/Runtime/Immutable/UIntImmutableVariable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 40578affcdca3ac46be54cc87d11098d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/SOVariables/Runtime/Mutable/UIntMutableVariable.cs b/Packages/SOVariables/Runtime/Mutable/UIntMutableVariable.cs new file mode 100644 index 0000000..990e254 --- /dev/null +++ b/Packages/SOVariables/Runtime/Mutable/UIntMutableVariable.cs @@ -0,0 +1,7 @@ +using UnityEngine; + +namespace RaCoding.Variables +{ + [CreateAssetMenu(fileName = "UIntMutableVariable", menuName = "RaCoding/Variables/Mutable/Create new mutable uint variable")] + public class UIntMutableVariable : MutableVariable { } +} diff --git a/Packages/SOVariables/Runtime/Mutable/UIntMutableVariable.cs.meta b/Packages/SOVariables/Runtime/Mutable/UIntMutableVariable.cs.meta new file mode 100644 index 0000000..7f4757c --- /dev/null +++ b/Packages/SOVariables/Runtime/Mutable/UIntMutableVariable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a871e54a2758ea74ea823626c4c8521c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/README.md b/README.md index ac59053..9ef4894 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Install with the Unity Package Manager: https://github.com/Ra-Coding/unity-scrip - byte - short - int +- uint - long - char - string