mirror of
https://github.com/Phantop/LADXHD.git
synced 2024-11-01 04:14:22 +00:00
24 lines
690 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|