33 int width =
ent.width;
34 int height =
ent.height;
48 float x =
ent.position.X;
49 float y =
ent.position.Y;
50 float x2 =
ent.velocity.X;
51 float y2 =
ent.velocity.Y;
class f__AnonymousType0<< Count > j__TPar
static float WrapAngle(float angle)
static void RemoveMyOldPortal(int form)
static readonly Point[] SLOPE_OFFSETS
static bool DoesTileTypeSupportPortals(ushort tileType)
const int PORTALS_PER_PERSON
static Color GetPortalColor(int player, int portal)
static int[,] FoundPortals
static Color GetPortalColor(int colorIndex)
static int AddPortal(Projectile sourceProjectile, Vector2 position, float angle, int form, int direction)
static bool anyPortalAtAll
static bool FindValidLine(Point position, int xOffset, int yOffset, [Out] Point bestPosition)
static void SyncPortalsOnPlayerJoin(int plr, int fluff, List< Point > dontInclude, [Out] List< Point > portalSections)
static bool SupportedHalfbrick(int x, int y)
static int TryPlacingPortal(Projectile theBolt, Vector2 velocity, Vector2 theCrashVelocity)
static bool CanPlacePortalOn(Tile t)
static bool SupportedSlope(int x, int y, int slope)
static Vector2 GetPortalOutingPoint(Vector2 objectSize, Vector2 portalPosition, float portalAngle, [Out] int bonusX, [Out] int bonusY)
static void RemoveIntersectingPortals(Vector2 position, float angle)
static void UpdatePortalPoints()
static bool BlockPortals(Tile t)
static Vector2 FindCollision(Vector2 startPosition, Vector2 stopPosition)
static readonly Vector2[] EDGES
static bool IsValidLine(Point position, int xOffset, int yOffset)
static void SyncPortalSections(Vector2 portalPosition, int fluff)
static void TryGoingThroughPortals(Entity ent)
static void GetPortalEdges(Vector2 position, float angle, [Out] Vector2 start, [Out] Vector2 end)
static int[] PortalCooldownForNPCs
static bool SupportedTilesAreFine(Vector2 portalCenter, float portalAngle)
static bool SupportedNormal(int x, int y)
static int[] PortalCooldownForPlayers
static readonly Vector2[] SLOPE_EDGES
static int GetSectionX(int x)
static int GetSectionY(int y)
static void CheckSection(int playerIndex, Vector2 position, int fluff=1)
static bool SolidOrSlopedTile(Tile tile)