Merge branch 'gameObjects' into Development

This commit is contained in:
SergoDobro 2024-08-16 00:57:53 +03:00
commit 5913e988f4
2 changed files with 36 additions and 19 deletions

View file

@ -1,29 +1,33 @@
using System; using System;
using ZoFo.GameCore.GameObjects; using System.Collections.Generic;
using Microsoft.Xna.Framework.Content; using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ZoFo.GameCore.GameObjects; namespace ZoFo.GameCore.GameObjects
public class Entity : GameObject
{ {
public int Id{ get; set; } public abstract class Entity : GameObject
//public CollisionComponent collisionComponents{ get; set; }
//public AnimationComponent animationComponent{ get; set; }
// в апдейте может заявляет изменения позиции
public void UpdateLogic()
{ {
public int Id { get; set; }
public void CollisionComponent()
{
} }
public void AnimationComponent()
{
}
// Методы для клиента public void UpdateLogic()
public void UpdateAnimation() {
{
} }
public void Draw(ContentManager manager)
{
} }
} }
//вектор
//вилосити
//поситион
//текстура

View file

@ -1,7 +1,20 @@
using System; using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
namespace ZoFo.GameCore.GameObjects; namespace ZoFo.GameCore.GameObjects;
public class LivingEntity : Entity public class LivingEntity : Entity
{ {
public Vector2 velocity;
public Vector2 position;
public void TextureLoad(SpriteBatch spriteBatch)
{
}
} }