LADXHD/InGame/GameObjects/Base/Components/CollisionComponent.cs

24 lines
690 B
C#
Raw Normal View History

2023-12-14 22:21:22 +00:00
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;
}
}
}