scripts
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ClusterLOD
|
||||
{
|
||||
// Token: 0x02000C9D RID: 3229
|
||||
[Token(Token = "0x2000C9D")]
|
||||
[StructLayout(3)]
|
||||
internal static class ClusterUtil
|
||||
{
|
||||
// Token: 0x06004DA1 RID: 19873 RVA: 0x001213FC File Offset: 0x0011F5FC
|
||||
[Token(Token = "0x6004DA1")]
|
||||
[Address(RVA = "0x1B37270", Offset = "0x1B35C70", VA = "0x181B37270")]
|
||||
public static Bounds GetBounds(List<IClusterLODComponent> components)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
List.Enumerator enumerator;
|
||||
if (enumerator == 0 || (ulong)1L == 0UL)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06004DA2 RID: 19874 RVA: 0x00121430 File Offset: 0x0011F630
|
||||
[Token(Token = "0x6004DA2")]
|
||||
[Address(RVA = "0x1B37460", Offset = "0x1B35E60", VA = "0x181B37460")]
|
||||
public static int GetVertexCount(List<IClusterLODComponent> components, int lod)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
List.Enumerator enumerator;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
int index = enumerator.index;
|
||||
if (num < index)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num += num;
|
||||
num++;
|
||||
num += 19;
|
||||
num += 19;
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user