Convert contrails to world coords.
This commit is contained in:
@@ -21,6 +21,7 @@ namespace OpenRA
|
||||
public readonly int X, Y;
|
||||
|
||||
public CPos(int x, int y) { X = x; Y = y; }
|
||||
public CPos(WPos a) { X = a.X / 1024; Y = a.Y / 1024; }
|
||||
|
||||
public static readonly CPos Zero = new CPos(0, 0);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ using OpenRA.FileFormats;
|
||||
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
public class RenderSimpleInfo : ITraitInfo
|
||||
public class RenderSimpleInfo : ITraitInfo, LocalCoordinatesModelInfo
|
||||
{
|
||||
[Desc("Defaults to the actor name.")]
|
||||
public readonly string Image = null;
|
||||
|
||||
@@ -216,6 +216,7 @@ namespace OpenRA.Traits
|
||||
WVec LocalToWorld(WVec vec);
|
||||
WRot QuantizeOrientation(Actor self, WRot orientation);
|
||||
}
|
||||
public interface LocalCoordinatesModelInfo {}
|
||||
|
||||
public interface ITargetable
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user