add: dissolve scene / nuget feed source
This commit is contained in:
8
NuGet.config
Normal file
8
NuGet.config
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<packageSources>
|
||||||
|
<add key="hangman-lab" value="https://git.hangman-lab.top/api/packages/hzhang/nuget/index.json"/>
|
||||||
|
<add key="Local" value="/NuGetFeed"/>
|
||||||
|
</packageSources>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
@@ -70,5 +70,6 @@
|
|||||||
<Folder Include="Data"/>
|
<Folder Include="Data"/>
|
||||||
<None Include="script_templates/**/*.*"/>
|
<None Include="script_templates/**/*.*"/>
|
||||||
<Compile Remove="script_templates/**/*.*"/>
|
<Compile Remove="script_templates/**/*.*"/>
|
||||||
|
<PackageReference Include="Polonium.Generators" Version="0.1.1-x" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -8,12 +8,13 @@
|
|||||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||||
<PackageId>Polonium</PackageId>
|
<PackageId>Polonium</PackageId>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Version>0.1.0</Version>
|
<Version>0.1.1-x</Version>
|
||||||
<Authors>Hangman</Authors>
|
<Authors>Hangman</Authors>
|
||||||
|
<DisableImplicitRestore>true</DisableImplicitRestore>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="GodotSharp" Version="4.4.0-beta.3" />
|
<PackageReference Include="GodotSharp" Version="4.4.0-beta.3" />
|
||||||
<PackageReference Include="Polonium.Tasks" Version="0.1.0" />
|
<PackageReference Include="Polonium.Tasks" Version="0.1.1-x" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Target Name="GenerateProxyNodes" BeforeTargets="BeforeBuild">
|
<Target Name="GenerateProxyNodes" BeforeTargets="BeforeBuild">
|
||||||
<GenerateProxyNodesTask
|
<GenerateProxyNodesTask
|
||||||
@@ -24,6 +25,7 @@
|
|||||||
/>
|
/>
|
||||||
</Target>
|
</Target>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Include="NuGet.config" />
|
||||||
<None
|
<None
|
||||||
Include="Package\build\$(AssemblyName).targets"
|
Include="Package\build\$(AssemblyName).targets"
|
||||||
Pack="true"
|
Pack="true"
|
||||||
@@ -39,14 +41,34 @@
|
|||||||
Pack="true"
|
Pack="true"
|
||||||
PackagePath="build\polonium_templates"
|
PackagePath="build\polonium_templates"
|
||||||
/>
|
/>
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="publish" />
|
<None Include="publish" />
|
||||||
<None Include="summerizer.py" />
|
<None Include="summerizer.py" />
|
||||||
<Compile Remove="polonium_templates\**\*.*"/>
|
<Compile Remove="polonium_templates\**\*.*"/>
|
||||||
</ItemGroup>
|
<Folder Include="polonium_templates" />
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="polonium_templates" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Target Name="CleanPreviousPackages" BeforeTargets="Build">
|
||||||
|
<Message Text="Cleaning Previous Packages -------------------------" Importance="high"/>
|
||||||
|
<Message Text="Cleaning --------------------------------------------" Importance="high"/>
|
||||||
|
<ItemGroup>
|
||||||
|
<ExistingPackages Include="$(OutputPath)*.nupkg"/>
|
||||||
|
</ItemGroup>
|
||||||
|
<Delete Files="@(ExistingPackages)" ContinueOnError="true"/>
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="CopyPackageToLocalFeed" AfterTargets="Pack">
|
||||||
|
<Message Text="Executing Copy Task ----------------------" Importance="high"/>
|
||||||
|
<Message Text="OutputPath: $(OutputPath)" Importance="high" />
|
||||||
|
<ItemGroup>
|
||||||
|
<NuGetPackages Include="$(OutputPath)*.nupkg" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Message Text="Printing pkgs--------------------" Importance="high"/>
|
||||||
|
<Message Text="Pkgs: @(NuGetPackages)" Importance="high"/>
|
||||||
|
<Copy SourceFiles="@(NuGetPackages)" DestinationFolder="/NuGetFeed"/>
|
||||||
|
</Target>
|
||||||
|
<Target Name="RestoreNoCache" BeforeTargets="Restore">
|
||||||
|
<Message Text="Restoring packages with no chache" Importance="high"/>
|
||||||
|
<Exec Command="dotnet restore --no-cache"/>
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
42
src/Scenes/DissolveScene.cs
Normal file
42
src/Scenes/DissolveScene.cs
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
using System.Diagnostics;
|
||||||
|
using Godot;
|
||||||
|
using Polonium.Attributes;
|
||||||
|
|
||||||
|
namespace Polonium.Scenes;
|
||||||
|
[ProxyNode]
|
||||||
|
public partial class DissolveScene : Scene
|
||||||
|
{
|
||||||
|
[Export]
|
||||||
|
public Scene NextScene { get; set; }
|
||||||
|
private bool Finished { get; set; } = false;
|
||||||
|
private bool Terminated { get; set; } = false;
|
||||||
|
|
||||||
|
public override void _Process(double delta)
|
||||||
|
{
|
||||||
|
if(Finished && !Terminated)
|
||||||
|
{
|
||||||
|
Terminated = true;
|
||||||
|
PoloniumRegistry.Instance.RootScene.SwitchScene(NextScene);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Process(delta);
|
||||||
|
base._Process(delta);
|
||||||
|
}
|
||||||
|
[ProxyMethod]
|
||||||
|
public virtual void Enter()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
[ProxyMethod]
|
||||||
|
public virtual void Process(double delta)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public sealed override void _EnterTree()
|
||||||
|
{
|
||||||
|
Finished = false;
|
||||||
|
Terminated = false;
|
||||||
|
Enter();
|
||||||
|
base._EnterTree();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user