2020-05-05 11:50:38 +08:00
|
|
|
using System.Collections;
|
|
|
|
|
2020-09-13 14:52:13 +08:00
|
|
|
namespace Strawberry.Sample
|
2020-05-05 11:50:38 +08:00
|
|
|
{
|
2021-02-05 15:11:51 +08:00
|
|
|
public class Solid : Component, IHasHitbox
|
2020-05-05 11:50:38 +08:00
|
|
|
{
|
2021-02-05 15:11:51 +08:00
|
|
|
public Hitbox Hitbox { get; private set; }
|
2020-05-05 11:50:38 +08:00
|
|
|
|
2021-12-24 09:09:38 +08:00
|
|
|
private Vector remainder;
|
|
|
|
|
|
|
|
public Vector ExactPosition => Entity.Position + remainder;
|
|
|
|
|
2021-02-05 15:11:51 +08:00
|
|
|
public this(Hitbox hitbox)
|
2020-05-05 11:50:38 +08:00
|
|
|
{
|
2021-02-05 15:11:51 +08:00
|
|
|
Hitbox = hitbox;
|
2020-05-06 09:51:27 +08:00
|
|
|
}
|
2021-12-24 09:09:38 +08:00
|
|
|
|
|
|
|
|
2020-05-05 11:50:38 +08:00
|
|
|
}
|
|
|
|
}
|