leave a warning for thirdparty scripters

This commit is contained in:
Matthias Mailänder
2015-07-09 21:12:06 +02:00
parent 43ddf14998
commit cae889fb67
2 changed files with 13 additions and 0 deletions

View File

@@ -70,4 +70,16 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Create a new WDist by cell distance")]
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); }
}
}