去掉obi,使用自写绳索

This commit is contained in:
2026-02-23 20:51:03 +08:00
parent cb636f862d
commit 91e2309eeb
2011 changed files with 2593 additions and 190578 deletions

View File

@@ -1,60 +0,0 @@
#if (OBI_BURST && OBI_MATHEMATICS && OBI_COLLECTIONS)
using UnityEngine;
using Unity.Mathematics;
using System.Collections;
using System;
namespace Obi
{
public struct BurstCellSpan : IEquatable<BurstCellSpan>
{
public int4 min;
public int4 max;
public BurstCellSpan(CellSpan span)
{
this.min = new int4(span.min.x, span.min.y, span.min.z, span.min.w);
this.max = new int4(span.max.x, span.max.y, span.max.z, span.max.w);
}
public BurstCellSpan(int4 min, int4 max)
{
this.min = min;
this.max = max;
}
public int level
{
get{return min.w;}
}
public bool Equals(BurstCellSpan other)
{
return min.Equals(other.min) && max.Equals(other.max);
}
public override bool Equals(object obj)
{
return this.Equals((BurstCellSpan)obj);
}
public override int GetHashCode()
{
return 0; // we don't have any non-mutable fields, so just return 0.
}
public static bool operator ==(BurstCellSpan a, BurstCellSpan b)
{
return a.Equals(b);
}
public static bool operator !=(BurstCellSpan a, BurstCellSpan b)
{
return !a.Equals(b);
}
}
}
#endif