private static RemoveIntersectingPortals ( Vector2 position, float angle ) : void | ||
position | Vector2 | |
angle | float | |
Результат | void |
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; }