CheckFloor() public static method

public static CheckFloor ( Vector2 Center, Point &spawnPoints ) : bool
Center Vector2
spawnPoints Microsoft.Xna.Framework.Point
return bool
Example #1
0
 private static bool CheckRitual(int x, int y)
 {
     if (CultistRitual.delay != 0 || !Main.hardMode || (!NPC.downedGolemBoss || !NPC.downedBoss3) || (y < 7 || WorldGen.SolidTile(Main.tile[x, y - 7]) || NPC.AnyNPCs(437)))
     return false;
       Vector2 Center = new Vector2((float) (x * 16 + 8), (float) (y * 16 - 64 - 8 - 27));
       Point[] spawnPoints = (Point[]) null;
       return CultistRitual.CheckFloor(Center, out spawnPoints);
 }
Example #2
0
        private static bool CheckRitual(int x, int y)
        {
            if (CultistRitual.delay != 0 || !Main.hardMode || (!NPC.downedGolemBoss || !NPC.downedBoss3) || (y < 7 || WorldGen.SolidTile(Main.tile[x, y - 7]) || NPC.AnyNPCs(437)))
            {
                return(false);
            }
            Vector2 Center;

            // ISSUE: explicit reference operation
            ((Vector2)@Center).\u002Ector((float)(x * 16 + 8), (float)(y * 16 - 64 - 8 - 27));
            Point[] spawnPoints = (Point[])null;
            return(CultistRitual.CheckFloor(Center, out spawnPoints));
        }
Example #3
0
        private static bool CheckRitual(int x, int y)
        {
            if (CultistRitual.delay != 0 || !Main.hardMode || (!NPC.downedGolemBoss || !NPC.downedBoss3) || (y < 7 || WorldGen.SolidTile(Main.tile[x, y - 7]) || NPC.AnyNPCs(437)))
            {
                return(false);
            }
            Vector2 Center = new Vector2((float)(x * 16 + 8), (float)(y * 16 - 64 - 8 - 27));

            Point[] pointArray = (Point[])null;
            // ISSUE: explicit reference operation
            // ISSUE: variable of a reference type
            Point[]& spawnPoints = @pointArray;
            return(CultistRitual.CheckFloor(Center, spawnPoints));
        }
Example #4
0
        // Token: 0x0600127D RID: 4733 RVA: 0x00417E48 File Offset: 0x00416048
        private static bool CheckRitual(int x, int y)
        {
            if (CultistRitual.delay != 0 || !Main.hardMode || !NpcMgr.downedGolemBoss || !NpcMgr.downedBoss3)
            {
                return(false);
            }
            if (y < 7 || WorldGen.SolidTile(Main.tile[x, y - 7]))
            {
                return(false);
            }
            if (NPC.AnyNPCs(437))
            {
                return(false);
            }
            Vector2 arg_64_0 = new Vector2((float)(x * 16 + 8), (float)(y * 16 - 64 - 8 - 27));

            Point[] array = null;
            return(CultistRitual.CheckFloor(arg_64_0, out array));
        }
Example #5
0
        private static bool CheckRitual(int x, int y)
        {
            if (CultistRitual.delay != 0 || !Main.hardMode || !NPC.downedGolemBoss || !NPC.downedBoss3)
            {
                return(false);
            }
            if (y < 7 || WorldGen.SolidTile(Main.tile[x, y - 7]))
            {
                return(false);
            }
            if (NPC.AnyNPCs(437))
            {
                return(false);
            }
            Vector2 vector2 = new Vector2((float)(x * 16 + 8), (float)(y * 16 - 64 - 8 - 27));

            Point[] pointArray = null;
            if (!CultistRitual.CheckFloor(vector2, out pointArray))
            {
                return(false);
            }
            return(true);
        }