TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DrawTileInWater()

static void Terraria.Main.DrawTileInWater ( Vector2 drawOffset,
int x,
int y )
inlinestatic

Definition at line 73216 of file Main.cs.

73217 {
73218 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
73219 //IL_00e1: Unknown result type (might be due to invalid IL or missing references)
73220 //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
73221 //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
73222 //IL_00ef: Unknown result type (might be due to invalid IL or missing references)
73223 //IL_00fb: Unknown result type (might be due to invalid IL or missing references)
73224 //IL_0101: Unknown result type (might be due to invalid IL or missing references)
73225 if (Main.tile[x, y] != null && Main.tile[x, y].active() && Main.tile[x, y].type == 518)
73226 {
73227 instance.LoadTiles(Main.tile[x, y].type);
73228 Tile tile = Main.tile[x, y];
73229 int num = tile.liquid / 16;
73230 num -= 3;
73231 if (WorldGen.SolidTile(x, y - 1) && num > 8)
73232 {
73233 num = 8;
73234 }
73235 Rectangle value = default(Rectangle);
73236 ((Rectangle)(ref value))._002Ector((int)tile.frameX, (int)tile.frameY, 16, 16);
73237 spriteBatch.Draw(TextureAssets.Tile[tile.type].Value, new Vector2((float)(x * 16), (float)(y * 16 - num)) + drawOffset, (Rectangle?)value, Lighting.GetColor(x, y), 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
73238 }
73239 }
static Asset< Texture2D >[] Tile
static SpriteBatch spriteBatch
Definition Main.cs:1043
static Main instance
Definition Main.cs:311
static Tilemap tile
Definition Main.cs:1820

References Terraria.Lighting.GetColor(), Terraria.Main.instance, Terraria.WorldGen.SolidTile(), Terraria.Main.spriteBatch, Terraria.GameContent.TextureAssets.Tile, and Terraria.Main.tile.

Referenced by Terraria.GameContent.Liquid.LiquidRenderer.DrawNormalLiquids(), Terraria.GameContent.Liquid.LiquidRenderer.DrawShimmer(), and Terraria.Main.oldDrawWater().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: