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 ZoFo.GameCore.GameObjects;
|
||||
using Microsoft.Xna.Framework.Content;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Entity : GameObject
|
||||
namespace ZoFo.GameCore.GameObjects
|
||||
{
|
||||
public abstract class Entity : GameObject
|
||||
{
|
||||
public int Id { get; set; }
|
||||
//public CollisionComponent collisionComponents{ get; set; }
|
||||
//public AnimationComponent animationComponent{ get; set; }
|
||||
public void CollisionComponent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void AnimationComponent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// в апдейте может заявляет изменения позиции
|
||||
public void UpdateLogic()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Методы для клиента
|
||||
public void UpdateAnimation()
|
||||
{
|
||||
|
||||
}
|
||||
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;
|
||||
public class LivingEntity : Entity
|
||||
{
|
||||
public Vector2 velocity;
|
||||
public Vector2 position;
|
||||
|
||||
public void TextureLoad(SpriteBatch spriteBatch)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue