Merge branch 'gameObjects' into Development
This commit is contained in:
commit
5913e988f4
2 changed files with 36 additions and 19 deletions
|
@ -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 UpdateAnimation()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
public void UpdateLogic()
|
||||||
public void Draw(ContentManager manager)
|
{
|
||||||
{
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//вектор
|
||||||
|
//вилосити
|
||||||
|
//поситион
|
||||||
|
//текстура
|
||||||
|
|
|
@ -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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue