Officially deprecate this function.

This commit is contained in:
Matthias Mailänder
2023-05-19 17:07:26 +02:00
committed by Gustas
parent 02e4bfba95
commit b30285e38d
3 changed files with 11 additions and 5 deletions

View File

@@ -9,6 +9,7 @@
*/
#endregion
using System;
using System.Linq;
using Eluant;
using OpenRA.Mods.Common.Traits;
@@ -49,13 +50,15 @@ namespace OpenRA.Mods.Common.Scripting
return FilteredObjects(actors, filter).ToArray();
}
// HACK: This api method abuses the coordinate system, and should be removed
// HACK: This API method abuses the coordinate system, and should be removed
// in favour of proper actor queries. See #8549.
[Obsolete("This function will be removed in future versions. Use Map.ActorsInWorld instead.")]
[Desc("Returns the location of the top-left corner of the map (assuming zero terrain height).")]
public WPos TopLeft => Context.World.Map.ProjectedTopLeft;
// HACK: This api method abuses the coordinate system, and should be removed
// HACK: This API method abuses the coordinate system, and should be removed
// in favour of proper actor queries. See #8549.
[Obsolete("This function will be removed in future versions. Use Map.ActorsInWorld instead.")]
[Desc("Returns the location of the bottom-right corner of the map (assuming zero terrain height).")]
public WPos BottomRight => Context.World.Map.ProjectedBottomRight;