Removed all obsolete methods from TShock
This commit is contained in:
parent
a8b4bf1d95
commit
a0c4864567
9 changed files with 1 additions and 263 deletions
|
|
@ -131,16 +131,6 @@ namespace TShockAPI.DB
|
|||
{
|
||||
return Warps.FirstOrDefault(w => String.Equals(w.Name, warpName, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
/// <summary>
|
||||
/// Finds the warp with the given name.
|
||||
/// </summary>
|
||||
/// <param name="warpName">The name.</param>
|
||||
/// <returns>The warp, if it exists, or else null.</returns>
|
||||
[Obsolete]
|
||||
public Warp FindWarp(string warpName)
|
||||
{
|
||||
return Warps.FirstOrDefault(w => String.Equals(w.Name, warpName, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the position of a warp.
|
||||
|
|
@ -209,15 +199,6 @@ namespace TShockAPI.DB
|
|||
/// Gets or sets the position.
|
||||
/// </summary>
|
||||
public Point Position { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the position.
|
||||
/// </summary>
|
||||
[Obsolete]
|
||||
public Vector2 WarpPos
|
||||
{
|
||||
get { return new Vector2(Position.X, Position.Y); }
|
||||
set { Position = new Point((int)value.X, (int)value.Y); }
|
||||
}
|
||||
|
||||
public Warp(Point position, string name, bool isPrivate = false)
|
||||
{
|
||||
|
|
@ -225,13 +206,6 @@ namespace TShockAPI.DB
|
|||
Position = position;
|
||||
IsPrivate = isPrivate;
|
||||
}
|
||||
[Obsolete]
|
||||
public Warp(Vector2 position, string name, bool isPrivate = false)
|
||||
{
|
||||
Name = name;
|
||||
WarpPos = position;
|
||||
IsPrivate = isPrivate;
|
||||
}
|
||||
|
||||
/// <summary>Creates a warp with a default coordinate of zero, an empty name, public.</summary>
|
||||
public Warp()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue