terraria-source-code/Modules/AnchorTypesModule.cs
2021-10-26 12:45:26 -04:00

68 lines
2 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Terraria.Modules.AnchorTypesModule
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
using System;
namespace Terraria.Modules
{
public class AnchorTypesModule
{
public int[] tileValid;
public int[] tileInvalid;
public int[] tileAlternates;
public int[] wallValid;
public AnchorTypesModule(AnchorTypesModule copyFrom = null)
{
if (copyFrom == null)
{
this.tileValid = (int[]) null;
this.tileInvalid = (int[]) null;
this.tileAlternates = (int[]) null;
this.wallValid = (int[]) null;
}
else
{
if (copyFrom.tileValid == null)
{
this.tileValid = (int[]) null;
}
else
{
this.tileValid = new int[copyFrom.tileValid.Length];
Array.Copy((Array) copyFrom.tileValid, (Array) this.tileValid, this.tileValid.Length);
}
if (copyFrom.tileInvalid == null)
{
this.tileInvalid = (int[]) null;
}
else
{
this.tileInvalid = new int[copyFrom.tileInvalid.Length];
Array.Copy((Array) copyFrom.tileInvalid, (Array) this.tileInvalid, this.tileInvalid.Length);
}
if (copyFrom.tileAlternates == null)
{
this.tileAlternates = (int[]) null;
}
else
{
this.tileAlternates = new int[copyFrom.tileAlternates.Length];
Array.Copy((Array) copyFrom.tileAlternates, (Array) this.tileAlternates, this.tileAlternates.Length);
}
if (copyFrom.wallValid == null)
{
this.wallValid = (int[]) null;
}
else
{
this.wallValid = new int[copyFrom.wallValid.Length];
Array.Copy((Array) copyFrom.wallValid, (Array) this.wallValid, this.wallValid.Length);
}
}
}
}
}