Skip to content

Commit

Permalink
Moving components folder to be in a better spot
Browse files Browse the repository at this point in the history
  • Loading branch information
Nhawdge committed Jan 30, 2024
1 parent ae450ce commit ba1796a
Show file tree
Hide file tree
Showing 53 changed files with 71 additions and 55 deletions.
6 changes: 0 additions & 6 deletions Components/LayerAir.cs

This file was deleted.

6 changes: 0 additions & 6 deletions Components/LayerBoat.cs

This file was deleted.

6 changes: 0 additions & 6 deletions Components/LayerWater.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Entities/Archetypes/CannonBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Utilities.Data;

namespace NovemberPirates.Entities.Archetypes
Expand Down
2 changes: 1 addition & 1 deletion Entities/Archetypes/CannonballBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Arch.Core;
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Utilities;
using Raylib_CsLo;
using System.Numerics;
Expand Down
1 change: 1 addition & 0 deletions Entities/Archetypes/EffectsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Utilities;
using Raylib_CsLo;
using System.Numerics;
Expand Down
2 changes: 1 addition & 1 deletion Entities/Archetypes/EnemyBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Arch.Core;
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Utilities;
using NovemberPirates.Utilities.Data;
using System.Numerics;
Expand Down
2 changes: 1 addition & 1 deletion Entities/Archetypes/PickupBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Arch.Core;
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Utilities;
using System.Numerics;

Expand Down
2 changes: 1 addition & 1 deletion Entities/Archetypes/PlayerBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Arch.Core;
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Utilities;
using System.Numerics;

Expand Down
2 changes: 1 addition & 1 deletion Extensions/MiscExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;
using Raylib_CsLo;
using System.Numerics;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class AiPathPoint
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NovemberPirates.Utilities;
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class AudioEvent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NovemberPirates.Utilities.Data;
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Cannon
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Cannonball
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class CrewMember
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Numerics;
using System.Runtime.CompilerServices;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Effect
{
Expand Down
6 changes: 6 additions & 0 deletions Scenes/Levels/Components/LayerAir.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace NovemberPirates.Scenes.Levels.Components
{
internal class LayerAir
{
}
}
6 changes: 6 additions & 0 deletions Scenes/Levels/Components/LayerBoat.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace NovemberPirates.Scenes.Levels.Components
{
internal class LayerBoat
{
}
}
6 changes: 6 additions & 0 deletions Scenes/Levels/Components/LayerWater.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace NovemberPirates.Scenes.Levels.Components
{
internal class LayerWater
{
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class MapTile
{
Expand Down
2 changes: 1 addition & 1 deletion Components/Npc.cs → Scenes/Levels/Components/Npc.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Npc
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class PatrolPoint
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NovemberPirates.Utilities;
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Player
{
Expand Down
2 changes: 1 addition & 1 deletion Components/Port.cs → Scenes/Levels/Components/Port.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Port
{
Expand Down
6 changes: 3 additions & 3 deletions Components/Render.cs → Scenes/Levels/Components/Render.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Raylib_CsLo;
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Render
{
Expand Down Expand Up @@ -62,8 +62,8 @@ public enum OriginAlignment
public virtual Rectangle Source
{
get => new Rectangle(
Column * SpriteWidth + (2 * Column) + 1,
Row * SpriteHeight + (2 * Row) + 1,
Column * SpriteWidth + 2 * Column + 1,
Row * SpriteHeight + 2 * Row + 1,
SpriteWidth * (IsFlipped ? -1 : 1),
SpriteHeight
);
Expand Down
2 changes: 1 addition & 1 deletion Components/Ship.cs → Scenes/Levels/Components/Ship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using NovemberPirates.Utilities.Data;
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Ship
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Spawner
{
Expand Down
4 changes: 2 additions & 2 deletions Components/Sprite.cs → Scenes/Levels/Components/Sprite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Numerics;
using System.Text.Json;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Sprite : Render
{
Expand Down Expand Up @@ -137,7 +137,7 @@ public Frame(long x, long y, long w, long h, float duration)
Y = (int)y;
W = (int)w;
H = (int)h;
Duration = (float)duration;
Duration = duration;
}

public Frame(Rectangle rect, float duration)
Expand Down
2 changes: 1 addition & 1 deletion Components/Wind.cs → Scenes/Levels/Components/Wind.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Wind
{
Expand Down
2 changes: 1 addition & 1 deletion Components/Wood.cs → Scenes/Levels/Components/Wood.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Numerics;

namespace NovemberPirates.Components
namespace NovemberPirates.Scenes.Levels.Components
{
internal class Wood
{
Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/OceanScene.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Arch.Core;
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Scenes.Levels.Systems;
using NovemberPirates.Utilities;
using NovemberPirates.Utilities.Maps;
Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/AudioSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using NovemberPirates.Utilities;
using Raylib_CsLo;
Expand Down
2 changes: 1 addition & 1 deletion Scenes/Levels/Systems/CameraSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Arch.Core;
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using Raylib_CsLo;
using System.Numerics;
Expand Down
2 changes: 1 addition & 1 deletion Scenes/Levels/Systems/CannonBallSystem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Arch.Core;
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Entities.Archetypes;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using NovemberPirates.Utilities;
using Raylib_CsLo;
Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/DebugSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using Raylib_CsLo;

Expand Down
2 changes: 1 addition & 1 deletion Scenes/Levels/Systems/EffectsSystem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Arch.Core;
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Entities.Archetypes;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using Raylib_CsLo;
using System.Numerics;
Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/EnemyControlSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using NovemberPirates.Components;
using NovemberPirates.Entities.Archetypes;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using NovemberPirates.Utilities;
using NovemberPirates.Utilities.Data;
Expand Down
2 changes: 2 additions & 0 deletions Scenes/Levels/Systems/PickupSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using NovemberPirates.Utilities.Data;
using Raylib_CsLo;
using System.Numerics;

Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/PlayerControlSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using NovemberPirates.Components;
using NovemberPirates.Entities.Archetypes;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using NovemberPirates.Utilities;
using Raylib_CsLo;
Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/PortSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using Raylib_CsLo;

Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/RenderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using Raylib_CsLo;
using System.Numerics;
Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/ShipControlSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using NovemberPirates.Components;
using NovemberPirates.Entities.Archetypes;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using NovemberPirates.Utilities;
using QuickType.Map;
Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/SpawningSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using NovemberPirates.Components;
using NovemberPirates.Entities.Archetypes;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using Raylib_CsLo;

Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/UiSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Arch.Core.Extensions;
using NovemberPirates.Components;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Scenes.Menus.MainMenu;
using NovemberPirates.Systems;
using Raylib_CsLo;
Expand Down
1 change: 1 addition & 0 deletions Scenes/Levels/Systems/WindSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using NovemberPirates.Components;
using NovemberPirates.Entities.Archetypes;
using NovemberPirates.Extensions;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Systems;
using Raylib_CsLo;

Expand Down
2 changes: 1 addition & 1 deletion Scenes/Menus/Components/SpriteButton.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;

namespace NovemberPirates.Scenes.Menus.Components
{
Expand Down
1 change: 1 addition & 0 deletions Scenes/Menus/MainMenu/MainMenuScene.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels;
using NovemberPirates.Scenes.Levels.Components;
using NovemberPirates.Scenes.Menus.Components;
using NovemberPirates.Scenes.Menus.Systems;
using NovemberPirates.Utilities;
Expand Down
2 changes: 1 addition & 1 deletion Utilities/Data/DataExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NovemberPirates.Components;
using NovemberPirates.Scenes.Levels.Components;

namespace NovemberPirates.Utilities.Data
{
Expand Down
Loading

0 comments on commit ba1796a

Please sign in to comment.