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,4 +1,8 @@
using Godot;
using Newlon.Components.GUI.Seedpackets;
using Newlon.Components.Plants;
namespace Newlon.Components.Level;
public partial class PlantField : Node2D
{
@ -64,7 +68,7 @@ public partial class PlantField : Node2D
if (canPlace)
_plantSetter.GlobalPosition = expected_pos;
_plantSetter.Texture = _resource == null ? null : _resource.Preview;
_plantSetter.Texture = _resource?.Preview;
}
public override void _UnhandledInput(InputEvent @event)

View file

@ -1,6 +1,8 @@
using Godot;
using System.Collections.Generic;
namespace Newlon.Components.Level;
//
// PoolContainer contains nodes that contain different elemnts that generate during runtime
// Is not pool in traditional sense, but named like that to prevent repetition

View file

@ -1,6 +1,7 @@
using System;
using Godot;
//using Godot.Collections;
namespace Newlon.Components.Level;
public partial class RuntimeLevelData : Node
{

View file

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