Create folder-CollisionManager and add 1st date with collision

This commit is contained in:
PetrKu09 2024-08-15 10:09:33 +03:00
parent d6c8b11e6f
commit a583875540
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.CollisionManager
{
public class CollisionComponent
{
//остановлен ли перс
bool doesStop;
Rectangle stopRectangle;
// --
bool isTrigger;
Rectangle triggerRectangle;
//events
public delegate void EventHandler(object sender, EventArgs e);
public event EventHandler<CollisionComponent> OnTriggerEnter;
public event EventHandler<CollisionComponent> OnTriggerZone;
public event EventHandler<CollisionComponent> OnTriggerExit;
// methods-event
public void TriggerEnter(object component, EventArgs e)
{
}
}
}

View file

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZoFo.GameCore.GameManagers.CollisionManager
{
public class CollisionManager
{
}
}