Expose WAngle to Lua API and deprecate old Facing.
This commit is contained in:
@@ -19,13 +19,18 @@ namespace OpenRA.Mods.Common.Scripting.Global
|
||||
public FacingGlobal(ScriptContext context)
|
||||
: base(context) { }
|
||||
|
||||
public int North { get { return 0; } }
|
||||
public int NorthWest { get { return 32; } }
|
||||
public int West { get { return 64; } }
|
||||
public int SouthWest { get { return 96; } }
|
||||
public int South { get { return 128; } }
|
||||
public int SouthEast { get { return 160; } }
|
||||
public int East { get { return 192; } }
|
||||
public int NorthEast { get { return 224; } }
|
||||
void Deprecated()
|
||||
{
|
||||
Game.Debug("The Facing table is deprecated. Use Angle instead.");
|
||||
}
|
||||
|
||||
public int North { get { Deprecated(); return 0; } }
|
||||
public int NorthWest { get { Deprecated(); return 32; } }
|
||||
public int West { get { Deprecated(); return 64; } }
|
||||
public int SouthWest { get { Deprecated(); return 96; } }
|
||||
public int South { get { Deprecated(); return 128; } }
|
||||
public int SouthEast { get { Deprecated(); return 160; } }
|
||||
public int East { get { Deprecated(); return 192; } }
|
||||
public int NorthEast { get { Deprecated(); return 224; } }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user