commit to fix condlicts with CollisionManager
This commit is contained in:
commit
fbb79e958a
2 changed files with 82 additions and 0 deletions
|
@ -0,0 +1,49 @@
|
|||
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;
|
||||
|
||||
// triggers for rectangle
|
||||
bool isTrigger;
|
||||
Rectangle triggerRectangle;
|
||||
|
||||
//delegate
|
||||
public delegate void EventHandler(object sender, EventArgs e);
|
||||
|
||||
|
||||
//events
|
||||
public event EventHandler<CollisionComponent> OnTriggerEnter;
|
||||
public event EventHandler<CollisionComponent> OnTriggerZone;
|
||||
public event EventHandler<CollisionComponent> OnTriggerExit;
|
||||
|
||||
// methods-event
|
||||
public void TriggerEnter(object component, ///<Player player>,
|
||||
EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
public void TriggerZone(object component,///<Player player>,
|
||||
EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
public void TriggerExit(object component,///<Player player>,
|
||||
EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
using Microsoft.VisualBasic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZoFo.GameCore.GameManagers.CollisionManager
|
||||
{
|
||||
public class CollisionManager
|
||||
{
|
||||
public List<CollisionComponent> CollisionComponent;
|
||||
public List<CollisionComponent> TriggerComponent;
|
||||
|
||||
public void UpdatePositions()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void GetObjectInArea(Rectangle area)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Register(Rectangle rectangle)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue