Initial commit

This commit is contained in:
2026-06-02 18:57:47 -04:00
commit 59d26a915d
268 changed files with 41240 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
using System;
using UnityEngine;
using UnityEngine.TestTools;
namespace BracerLib.Data
{
[Serializable, ExcludeFromCoverage]
public struct Layer : IEquatable<Layer>
{
public static implicit operator int(Layer layer)
{
return layer.layerIndex;
}
[SerializeField]
private int layerIndex;
public int LayerIndex
{
get => layerIndex;
set
{
if (value > 0 && value < 32)
layerIndex = value;
}
}
public int Mask => 1 << layerIndex;
public bool Equals(Layer other) => layerIndex == other.layerIndex;
public override bool Equals(object obj) => obj is Layer other && Equals(other);
public override int GetHashCode() => layerIndex;
public static bool operator ==(Layer left, Layer right) => left.Equals(right);
public static bool operator !=(Layer left, Layer right) => !left.Equals(right);
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 5c4f8fe70c14aea4ea15d53ddb93f727