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

◆ DrawWallOfFish()

static void Terraria.Main.DrawWallOfFish ( )
inlinestatic

Definition at line 60210 of file Main.cs.

60211 {
60212 //IL_013d: Unknown result type (might be due to invalid IL or missing references)
60213 //IL_00de: Unknown result type (might be due to invalid IL or missing references)
60214 //IL_00e0: Unknown result type (might be due to invalid IL or missing references)
60215 //IL_00e5: Unknown result type (might be due to invalid IL or missing references)
60216 //IL_00ea: Unknown result type (might be due to invalid IL or missing references)
60217 //IL_00ef: Unknown result type (might be due to invalid IL or missing references)
60218 //IL_00f8: Unknown result type (might be due to invalid IL or missing references)
60219 //IL_0104: Unknown result type (might be due to invalid IL or missing references)
60220 //IL_010b: Unknown result type (might be due to invalid IL or missing references)
60221 //IL_0112: Unknown result type (might be due to invalid IL or missing references)
60222 //IL_011e: Unknown result type (might be due to invalid IL or missing references)
60223 //IL_0128: Unknown result type (might be due to invalid IL or missing references)
60224 List<int> list = new List<int>();
60225 for (int i = 2297; i <= 2321; i++)
60226 {
60227 list.Add(i);
60228 }
60229 for (int j = 2450; j <= 2488; j++)
60230 {
60231 list.Add(j);
60232 }
60233 Vector2 vector = default(Vector2);
60234 for (int k = 0; k < 5; k++)
60235 {
60236 float num = 10f;
60237 ((Vector2)(ref vector))._002Ector((float)screenWidth / num * (GlobalTimeWrappedHourly % num), -100f);
60238 vector.X += 14 * k;
60239 vector.Y += k % 2 * 14;
60240 int num2 = 30 * k;
60241 while (vector.Y < (float)(screenHeight + 100))
60242 {
60243 if (++num2 >= list.Count)
60244 {
60245 num2 = 0;
60246 }
60247 vector.Y += 26f;
60248 instance.LoadItem(list[num2]);
60249 Texture2D value = TextureAssets.Item[list[num2]].Value;
60250 Point point = (vector + screenPosition).ToTileCoordinates();
60251 spriteBatch.Draw(value, vector, (Rectangle?)null, Lighting.GetColor(point.X, point.Y), (float)Math.PI / 4f, value.Size() / 2f, 1f, (SpriteEffects)0, 0f);
60252 }
60253 }
60254 }
static Asset< Texture2D >[] Item
static SpriteBatch spriteBatch
Definition Main.cs:1043
static Main instance
Definition Main.cs:311
static int screenHeight
Definition Main.cs:1870
static Vector2 screenPosition
The position of the top left corner of the screen in world coordinates. Modify in M:Terraria....
Definition Main.cs:1864
static int screenWidth
Definition Main.cs:1868
static float GlobalTimeWrappedHourly
Definition Main.cs:433

References Terraria.Lighting.GetColor(), Terraria.Main.GlobalTimeWrappedHourly, Terraria.Main.instance, Terraria.GameContent.TextureAssets.Item, Terraria.Main.screenHeight, Terraria.Main.screenPosition, Terraria.Main.screenWidth, and Terraria.Main.spriteBatch.

+ Here is the call graph for this function: