mirror of
https://github.com/Phantop/LADXHD.git
synced 2025-09-03 12:17:56 +00:00
26 lines
740 B
C#
26 lines
740 B
C#
using Microsoft.Xna.Framework;
|
|
using ProjectZ.InGame.GameObjects.Base.CObjects;
|
|
using ProjectZ.InGame.Things;
|
|
|
|
namespace ProjectZ.InGame.GameObjects.Base.Components
|
|
{
|
|
class HittableComponent : Component
|
|
{
|
|
public new static int Index = 7;
|
|
public static int Mask = 0x01 << Index;
|
|
|
|
public delegate Values.HitCollision HitTemplate(GameObject originObject, Vector2 direction, HitType type, int damage, bool pieceOfPower);
|
|
public HitTemplate Hit;
|
|
|
|
public CBox HittableBox;
|
|
|
|
public bool IsActive = true;
|
|
|
|
public HittableComponent(CBox hittableBox, HitTemplate hit)
|
|
{
|
|
HittableBox = hittableBox;
|
|
Hit = hit;
|
|
}
|
|
}
|
|
}
|