LADXHD/InGame/GameObjects/Base/Components/CollisionComponent.cs
2023-12-14 17:21:22 -05:00

24 lines
690 B
C#

using ProjectZ.Base;
using ProjectZ.InGame.Things;
namespace ProjectZ.InGame.GameObjects.Base.Components
{
public class CollisionComponent : Component
{
public new static int Index = 4;
public static int Mask = 0x01 << Index;
public delegate bool CollisionTemplate(Box box, int direction, int level, ref Box collidingBox);
public CollisionTemplate Collision;
public Values.CollisionTypes CollisionType = Values.CollisionTypes.Normal;
protected CollisionComponent() { }
public CollisionComponent(CollisionTemplate collision)
{
Collision = collision;
}
}
}