26 private const int Bit0 = 1;
28 private const int Bit1 = 2;
30 private const int Bit2 = 4;
32 private const int Bit3 = 8;
34 private const int Bit4 = 16;
36 private const int Bit5 = 32;
38 private const int Bit6 = 64;
40 private const int Bit7 = 128;
42 private const ushort
Bit15 = 32768;
135 return MemberwiseClone();
174 if (compTile ==
null)
296 return new Color((
byte)(num * (
double)(
int)oldColor.
R), (
byte)(num * (
double)(
int)oldColor.
G), (
byte)(num * (
double)(
int)oldColor.
B), oldColor.
A);
349 return (
sTileHeader & 0x7400) == (tile.sTileHeader & 0x7400);
759 public static void SmoothSlope(
int x,
int y,
bool applyToNeighbors =
true,
bool sync =
false)
761 if (applyToNeighbors)
763 SmoothSlope(x + 1, y, applyToNeighbors:
false, sync);
764 SmoothSlope(x - 1, y, applyToNeighbors:
false, sync);
765 SmoothSlope(x, y + 1, applyToNeighbors:
false, sync);
766 SmoothSlope(x, y - 1, applyToNeighbors:
false, sync);
778 int num = ((flag ? 1 : 0) << 3) | ((flag3 ? 1 : 0) << 2) | ((flag4 ? 1 : 0) << 1) | (flag5 ? 1 : 0);
780 int num2 = tile.
slope();
816 int num3 = tile.
slope();
818 bool flag8 = num2 != num3;
836 color(other.color());
844 result.Color =
color();
static bool[] tileSolidTop
static bool[] tileFrameImportant
static void SendData(int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
void wallFrameNumber(byte wallFrameNumber)
void wallColor(byte wallColor)
static void SmoothSlope(int x, int y, bool applyToNeighbors=true, bool sync=false)
const int Type_SlopeDownRight
const int Type_SlopeUpLeft
const int Type_SlopeDownLeft
void skipLiquid(bool skipLiquid)
void checkingLiquid(bool checkingLiquid)
void invisibleWall(bool invisibleWall)
override string ToString()
void liquidType(int liquidType)
void invisibleBlock(bool invisibleBlock)
void frameNumber(byte frameNumber)
void UseWallColors(TileColorCache cache)
void actuator(bool actuator)
TileColorCache WallColorAndCoating()
void ClearBlockPaintAndCoating()
Color actColor(Color oldColor)
void ResetToType(ushort type)
void ClearWallPaintAndCoating()
void wallFrameY(int wallFrameY)
void CopyPaintAndCoating(Tile other)
void actColor(ref Vector3 oldColor)
const int NeitherLavaOrHoney
void Clear(TileDataType types)
void wallFrameX(int wallFrameX)
void fullbrightWall(bool fullbrightWall)
const int Type_SlopeUpRight
bool HasSameSlope(Tile tile)
void shimmer(bool shimmer)
void inActive(bool inActive)
const int EitherLavaOrHoney
void fullbrightBlock(bool fullbrightBlock)
void halfBrick(bool halfBrick)
TileColorCache BlockColorAndCoating()
void UseBlockColors(TileColorCache cache)
bool isTheSameAs(Tile compTile)
static bool TileEmpty(int i, int j)
static bool CanPoundTile(int x, int y)
static bool SolidOrSlopedTile(Tile tile)
void ApplyToBlock(Tile tile)
void ApplyToWall(Tile tile)