Great Merge Completed (TODO: GUI recheck)
Code Refactoring (moving gameobjects between folders)
This commit is contained in:
parent
1718de9412
commit
c84ecc3c9f
23 changed files with 116 additions and 108 deletions
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Reflection.Metadata;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ZoFo.GameCore.GameObjects;
|
||||
using ZoFo.GameCore.GameObjects.Entities.LivingEntities.Player;
|
||||
|
||||
namespace ZoFo.GameCore.GameManagers.CollisionManager
|
||||
{
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Bullet : Projectile
|
||||
{
|
||||
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Rock : Projectile
|
||||
{
|
||||
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Collectable : Entity
|
||||
{
|
||||
|
||||
}
|
|
@ -1,33 +1,33 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects
|
||||
{
|
||||
public abstract class Entity : GameObject
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public void CollisionComponent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void AnimationComponent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void UpdateLogic()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//вектор
|
||||
//вилосити
|
||||
//поситион
|
||||
//текстура
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities
|
||||
{
|
||||
public abstract class Entity : GameObject
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public void CollisionComponent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void AnimationComponent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void UpdateLogic()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//вектор
|
||||
//вилосити
|
||||
//поситион
|
||||
//текстура
|
|
@ -0,0 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.Interactables.Collectables;
|
||||
public class Collectable : Entity
|
||||
{
|
||||
|
||||
}
|
|
@ -1,11 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Mime;
|
||||
using System.Reflection;
|
||||
using Microsoft.Xna.Framework.Content;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Enemy : LivingEntity
|
||||
{
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Mime;
|
||||
using System.Reflection;
|
||||
using Microsoft.Xna.Framework.Content;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Enemies;
|
||||
public class Enemy : LivingEntity
|
||||
{
|
||||
|
||||
}
|
|
@ -1,20 +1,21 @@
|
|||
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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using ZoFo.GameCore.GameObjects.Entities;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities;
|
||||
public class LivingEntity : Entity
|
||||
{
|
||||
public Vector2 velocity;
|
||||
public Vector2 position;
|
||||
|
||||
public void TextureLoad(SpriteBatch spriteBatch)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Player
|
||||
{
|
||||
internal interface IPlayerWeaponAttack
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Player
|
||||
{
|
||||
internal class LootData
|
||||
{
|
|
@ -0,0 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Player;
|
||||
public class Player : LivingEntity
|
||||
{
|
||||
|
||||
}
|
|
@ -4,9 +4,9 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Player.PlayerAttacks
|
||||
{
|
||||
internal class GunAttack:IPlayerWeaponAttack
|
||||
internal class GunAttack : IPlayerWeaponAttack
|
||||
{
|
||||
|
||||
}
|
|
@ -4,9 +4,9 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Player.PlayerAttacks
|
||||
{
|
||||
internal class HandAttack:IPlayerWeaponAttack
|
||||
internal class HandAttack : IPlayerWeaponAttack
|
||||
{
|
||||
|
||||
}
|
|
@ -4,9 +4,9 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Player.PlayerAttacks
|
||||
{
|
||||
internal class SwordAttack:IPlayerWeaponAttack
|
||||
internal class SwordAttack : IPlayerWeaponAttack
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Projectiles;
|
||||
public class Bullet : Projectile
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Projectiles;
|
||||
public class Rock : Projectile
|
||||
{
|
||||
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Player : LivingEntity
|
||||
{
|
||||
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using ZoFo.GameCore.GameObjects.Entities.LivingEntities;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
public class Projectile : LivingEntity
|
||||
|
|
8
ZoFo/GameCore/GameObjects/StopObjects/StopObject.cs
Normal file
8
ZoFo/GameCore/GameObjects/StopObjects/StopObject.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects.StopObjects;
|
||||
|
||||
public class StopObject
|
||||
{
|
||||
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace ZoFo.GameCore.GameObjects;
|
||||
|
||||
public class StopObject
|
||||
{
|
||||
|
||||
}
|
|
@ -9,6 +9,7 @@ using ZoFo.GameCore.GameManagers.NetworkManager;
|
|||
using ZoFo.GameCore.GameManagers.NetworkManager.Updates;
|
||||
using ZoFo.GameCore.GameManagers.NetworkManager.Updates.ServerToClient;
|
||||
using ZoFo.GameCore.GameObjects;
|
||||
using ZoFo.GameCore.GameObjects.Entities;
|
||||
|
||||
namespace ZoFo.GameCore
|
||||
{
|
||||
|
|
|
@ -10,6 +10,11 @@
|
|||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<ApplicationIcon>Icon.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Remove="GameCore\GameObjects\BaseClasses\**" />
|
||||
<EmbeddedResource Remove="GameCore\GameObjects\BaseClasses\**" />
|
||||
<None Remove="GameCore\GameObjects\BaseClasses\**" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Remove="Icon.ico" />
|
||||
<None Remove="Icon.bmp" />
|
||||
|
|
Loading…
Add table
Reference in a new issue