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,7 @@
using Godot;
using System;
using Newlon.Components.Zombies;
namespace Newlon.Components.Plants;
public partial class AreaAttack : Area2D
{

View file

@ -1,4 +1,7 @@
using Godot;
using Newlon.Components.Zombies;
namespace Newlon.Components.Plants;
public partial class ExplosionComponent : Area2D
{

View file

@ -1,6 +1,8 @@
using Godot;
using System.Collections.Generic;
namespace Newlon.Components.Plants;
public partial class Eyesight : Area2D
{
private bool _enemyDetected;

View file

@ -1,5 +1,6 @@
using Godot;
using System;
namespace Newlon.Components.Plants;
public partial class PlantEyesightLimiter : CollisionShape2D
{

View file

@ -1,5 +1,7 @@
using Godot;
using System;
using Newlon.Components.Level;
namespace Newlon.Components.Plants;
public partial class PlantSunSpawner : Node2D
{

View file

@ -1,5 +1,7 @@
using Godot;
using System;
using Newlon.Components.Level;
namespace Newlon.Components.Plants;
//
// Data that plant stores during runtime

View file

@ -1,4 +1,7 @@
using Godot;
using Newlon.Components.Level;
namespace Newlon.Components.Plants;
// Shoot component of some plants
public partial class Shooter : Node2D

View file

@ -1,5 +1,6 @@
using Godot;
using System;
namespace Newlon.Components.Plants.Behaviours;
public partial class PeashooterBehaviour : Node
{

View file

@ -1,5 +1,7 @@
using Godot;
namespace Newlon.Components.Plants.Behaviours;
public partial class PotatomineBehaviour : Node
{
[Export] private AnimationPlayer _player;

View file

@ -1,5 +1,6 @@
using Godot;
using System;
namespace Newlon.Components.Plants.Behaviours;
public partial class SpikeweedBehaviour : Node
{

View file

@ -1,5 +1,6 @@
using Godot;
using System;
namespace Newlon.Components.Plants.Behaviours;
public partial class SunflowerBehaviour : Node
{

View file

@ -1,5 +1,6 @@
using Godot;
using System;
namespace Newlon.Components.Plants.Behaviours;
public partial class WallnutBehaviour : Node
{