mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-25 08:22:15 +00:00
demos are at least compiling again
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace MonoGame.Extended.SceneGraphs
|
||||
{
|
||||
public class SceneEntityCollection : Collection<IRectangularF>
|
||||
public class SceneEntityCollection : Collection<SceneEntity>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,23 @@ using MonoGame.Extended.Sprites;
|
||||
|
||||
namespace MonoGame.Extended.SceneGraphs
|
||||
{
|
||||
public abstract class SceneEntity : Transform2D, IRectangularF
|
||||
{
|
||||
public abstract RectangleF BoundingRectangle { get; }
|
||||
}
|
||||
|
||||
public class SpriteEntity : SceneEntity
|
||||
{
|
||||
private readonly Sprite _sprite;
|
||||
|
||||
public SpriteEntity(Sprite sprite)
|
||||
{
|
||||
_sprite = sprite;
|
||||
}
|
||||
|
||||
public override RectangleF BoundingRectangle => _sprite.GetBoundingRectangle(Position, Rotation, Scale);
|
||||
}
|
||||
|
||||
public class SceneNode : Transform2D
|
||||
{
|
||||
public SceneNode(string name)
|
||||
|
||||
Reference in New Issue
Block a user