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

24 lines
642 B
C#
Raw Normal View History

2023-12-14 22:21:22 +00:00
using ProjectZ.InGame.GameObjects.Base.CObjects;
namespace ProjectZ.InGame.GameObjects.Base.Components
{
class InteractComponent : Component
{
public new static int Index = 8;
public static int Mask = 0x01 << Index;
public bool IsActive = true;
public delegate bool InteractTemplate();
public InteractTemplate InteractFunction;
public CBox BoxInteractabel;
public InteractComponent(CBox box, InteractTemplate interactFunction)
{
BoxInteractabel = box;
InteractFunction = interactFunction;
}
}
}