-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #276 from tzachshabtay/XY_Fixes
Fix matching areas didn't use world position
- Loading branch information
Showing
47 changed files
with
1,043 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
namespace AGS.API | ||
{ | ||
/// <summary> | ||
/// Allows getting the world position for entities. | ||
/// </summary> | ||
public interface IWorldPositionComponent : IComponent | ||
{ | ||
/// <summary> | ||
/// Get the X of an entity in world coordinates. | ||
/// In case the entity has no parents, the value will be the same as <see cref="ITranslate.X"/>, | ||
/// but if the entity has a parent, then WorldX will give you the absolute world value (as opposed to relative to the parent). | ||
/// </summary> | ||
/// <value>The world x.</value> | ||
float WorldX { get; } | ||
|
||
/// <summary> | ||
/// Get the Y of an entity in world coordinates. | ||
/// In case the entity has no parents, the value will be the same as <see cref="ITranslate.Y"/>, | ||
/// but if the entity has a parent, then WorldY will give you the absolute world value (as opposed to relative to the parent). | ||
/// </summary> | ||
/// <value>The world y.</value> | ||
float WorldY { get; } | ||
|
||
/// <summary> | ||
/// Get the (X,Y) of an entity in world coordinates. | ||
/// In case the entity has no parents, the value will be the same as <see cref="ITranslate.Location"/>, | ||
/// but if the entity has a parent, then WorldXY will give you the absolute world value (as opposed to relative to the parent). | ||
/// </summary> | ||
/// <value>The world y.</value> | ||
PointF WorldXY { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.