Refactor
This commit is contained in:
parent
cea648f0ff
commit
65fe0e5c5d
14 changed files with 30 additions and 33 deletions
9
scripts/Newlon.cs
Normal file
9
scripts/Newlon.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Newlon;
|
||||
|
||||
public static class LON
|
||||
{
|
||||
public static float Pr(string path)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
1
scripts/Newlon.cs.uid
Normal file
1
scripts/Newlon.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bkr8vxejk4n2u
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
using Newlon;
|
||||
|
||||
public partial class PlayerProgress : Node
|
||||
{
|
||||
public static PlayerProgress Instance { get; private set; }
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public List<PlantResource> PlayerPlants { get; set; } = new();
|
||||
public int MaxSeedpackets = 9;
|
||||
public int Money { get; set; }
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class ScalableAudioPlayer : AudioStreamPlayer
|
||||
{
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if(PitchScale != (float)Engine.TimeScale)
|
||||
PitchScale = (float)Engine.TimeScale * (float)Engine.TimeScale;
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
uid://wfjsgbg3fekl
|
||||
17
scripts/systems/static-data/PlayerProgress.cs
Normal file
17
scripts/systems/static-data/PlayerProgress.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
using Newlon;
|
||||
|
||||
public partial class PlayerProgress : Node
|
||||
{
|
||||
public static PlayerProgress Instance { get; private set; }
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public List<PlantResource> PlayerPlants { get; set; } = new();
|
||||
public int MaxSeedpackets = 9;
|
||||
public int Money { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue