Moved scripts to namespaces

This commit is contained in:
Фёдор Веселов 2024-09-29 15:06:51 +05:00
commit de2c6261b0
51 changed files with 128 additions and 29 deletions

View file

@ -1,5 +1,6 @@
using Godot;
using System;
namespace Newlon.Components.GUI;
public partial class FastForwardButton : Button
{

View file

@ -1,5 +1,8 @@
using Godot;
using System;
using Newlon.Components.Plants;
using Newlon.Components.Level;
namespace Newlon.Components.GUI;
public partial class ShovelButton : TextureButton
{

View file

@ -1,5 +1,7 @@
using Godot;
using System;
using Newlon.Components.Level;
namespace Newlon.Components.GUI;
public partial class SunCounter : Label
{

View file

@ -1,5 +1,6 @@
using Godot;
using System;
namespace Newlon.Components.GUI;
public partial class VeilResizer : TextureProgressBar
{

View file

@ -1,5 +1,7 @@
using Godot;
using System;
using Newlon.Components.GUI.Seedpackets;
namespace Newlon.Components.GUI;
public partial class GridLoader : GridContainer
{

View file

@ -1,4 +1,7 @@
using Godot;
using Newlon.Components.Level;
namespace Newlon.Components.GUI;
public partial class LevelRunButton : Button
{

View file

@ -1,3 +1,5 @@
namespace Newlon.Components.GUI.Seedpackets;
public class ChoosableHandler : SeedpacketHandler, ISeedpacketPress
{
public ChoosableHandler(Seedpacket owner) : base(owner)

View file

@ -1,5 +1,7 @@
using System;
using Godot;
using Newlon.Components.Level;
namespace Newlon.Components.GUI.Seedpackets;
public class HotbarHandler : SeedpacketHandler, ISeedpacketPress, ISeedpacketProcess, ISeedpacketUnfocus
{
public HotbarHandler(Seedpacket owner) : base(owner)

View file

@ -1,5 +1,8 @@
using System;
using Godot;
using Newlon.Components.Level;
namespace Newlon.Components.GUI.Seedpackets;
public class HotbarPregameHandler : SeedpacketHandler, ISeedpacketPress
{
public HotbarPregameHandler(Seedpacket owner) : base(owner)

View file

@ -1,3 +1,5 @@
namespace Newlon.Components.GUI.Seedpackets;
public interface ISeedpacketPress
{
public void Pressed();

View file

@ -1,3 +1,5 @@
namespace Newlon.Components.GUI.Seedpackets;
public interface ISeedpacketProcess
{
public void Process();

View file

@ -1,3 +1,5 @@
namespace Newlon.Components.GUI.Seedpackets;
public interface ISeedpacketUnfocus
{
public void OnUnfocused();

View file

@ -1,5 +1,6 @@
using Godot;
using System;
namespace Newlon.Components.GUI.Seedpackets;
public partial class Seedpacket : TextureButton
{

View file

@ -1,3 +1,5 @@
namespace Newlon.Components.GUI.Seedpackets;
public class SeedpacketHandler
{
protected Seedpacket _owner;