SupportedTilesAreFine() public static method

public static SupportedTilesAreFine ( Vector2 portalCenter, float portalAngle ) : bool
portalCenter Vector2
portalAngle float
return bool
コード例 #1
0
 private static int AddPortal(Vector2 position, float angle, int form, int direction)
 {
     if (!PortalHelper.SupportedTilesAreFine(position, angle))
     return -1;
       PortalHelper.RemoveMyOldPortal(form);
       PortalHelper.RemoveIntersectingPortals(position, angle);
       int index = Projectile.NewProjectile(position.X, position.Y, 0.0f, 0.0f, 602, 0, 0.0f, Main.myPlayer, angle, (float) form);
       Main.projectile[index].direction = direction;
       Main.projectile[index].netUpdate = true;
       return index;
 }