Remove deprecated Lua APIs.
This commit is contained in:
@@ -71,16 +71,4 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
[Desc("Create a new WDist by cell distance.")]
|
[Desc("Create a new WDist by cell distance.")]
|
||||||
public WDist FromCells(int numCells) { return WDist.FromCells(numCells); }
|
public WDist FromCells(int numCells) { return WDist.FromCells(numCells); }
|
||||||
}
|
}
|
||||||
|
|
||||||
[ScriptGlobal("WRange")]
|
|
||||||
public class WRangeGlobal : ScriptGlobal
|
|
||||||
{
|
|
||||||
public WRangeGlobal(ScriptContext context) : base(context) { }
|
|
||||||
|
|
||||||
[Desc("Create a new WRange. DEPRECATED! Will be removed.")]
|
|
||||||
public WDist New(int r) { Game.Debug("WRange is deprecated. Use WDist instead."); return new WDist(r); }
|
|
||||||
|
|
||||||
[Desc("Create a new WRange by cell distance. DEPRECATED! Will be removed.")]
|
|
||||||
public WDist FromCells(int numCells) { Game.Debug("WRange is deprecated. Use WDist instead."); return WDist.FromCells(numCells); }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,16 +33,6 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
[Desc("The player's color.")]
|
[Desc("The player's color.")]
|
||||||
public HSLColor Color { get { return Player.Color; } }
|
public HSLColor Color { get { return Player.Color; } }
|
||||||
|
|
||||||
[Desc("The player's race. (DEPRECATED! Use the `Faction` property.)")]
|
|
||||||
public string Race
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
Game.Debug("The property `PlayerProperties.Race` is deprecated! Use `PlayerProperties.Faction` instead!");
|
|
||||||
return Player.Faction.InternalName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[Desc("The player's faction.")]
|
[Desc("The player's faction.")]
|
||||||
public string Faction { get { return Player.Faction.InternalName; } }
|
public string Faction { get { return Player.Faction.InternalName; } }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user