feat: refactoring && walls

This commit is contained in:
2024-04-18 16:04:53 +07:00
parent 6333d80fd4
commit 36af656e0d
20 changed files with 202 additions and 93 deletions

View File

@@ -1,6 +0,0 @@
using Scellecs.Morpeh;
public struct CanCollideComponent : IComponent
{
public bool CanCollide;
}

View File

@@ -1,6 +1,8 @@
using Raylib_cs;
using Scellecs.Morpeh;
namespace BakeryGame.Components.Common;
public struct ColorComponent : IComponent
{
public Color Color { get; set; }

View File

@@ -1,6 +1,8 @@
using System.Numerics;
using Scellecs.Morpeh;
namespace BakeryGame.Components.Common;
public struct PositionComponent : IComponent
{
public Vector3 Position;

View File

@@ -1,7 +1,8 @@
using System.Numerics;
using Raylib_cs;
using Scellecs.Morpeh;
namespace BakeryGame.Components.Environment;
public struct BlockComponent : IComponent
{
public Vector3 Size;

View File

@@ -1,7 +1,9 @@
using Raylib_cs;
using Scellecs.Morpeh;
namespace BakeryGame.Components.Player;
public struct CameraComponent : IComponent
{
public Camera2D Camera;
public Camera3D Camera;
}

View File

@@ -1,5 +1,7 @@
using Scellecs.Morpeh;
namespace BakeryGame.Components.Player;
public struct HealthComponent : IComponent
{
public int HealthPoints;

View File

@@ -1,6 +1,8 @@
using BakeryGame.Models;
using Scellecs.Morpeh;
namespace BakeryGame.Components.Player;
public struct MovementComponent : IComponent
{
public Direction Direction;

View File

@@ -1,7 +1,8 @@
using System.Numerics;
using Raylib_cs;
using Scellecs.Morpeh;
namespace BakeryGame.Components.Player;
public struct PlayerComponent : IComponent
{
public Vector3 Size;