Skip to content

Commit

Permalink
chore: bump packages version
Browse files Browse the repository at this point in the history
  • Loading branch information
Yushu2606 committed Aug 19, 2024
1 parent 09fd27b commit 0f01c19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/Hosihikari.ScriptManagement.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Hosihikari.PluginManager" Version="1.0.4" />
<PackageReference Include="Hosihikari.PluginManager" Version="1.0.9" />
<PackageReference Include="IronPython" Version="3.4.1" />
<PackageReference Include="NeoLua" Version="1.3.15-beta.2" />
<PackageReference Include="NeoLua" Version="1.3.15-beta.4" />
</ItemGroup>
</Project>
9 changes: 2 additions & 7 deletions src/LuaPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace Hosihikari.ScriptManagement;

public class LuaPlugin : Plugin
public class LuaPlugin(FileInfo fileInfo) : Plugin(fileInfo)
{
private LuaChunk? _luaChunk;

public LuaPlugin(FileInfo fileInfo) : base(fileInfo)
{
// Nothing need to prepare
}

protected override void Initialize()
{
using Lua lua = new();
Expand All @@ -24,7 +19,7 @@ protected override void Load()
{
throw new NullReferenceException();
}
_luaChunk.Run(new());
_luaChunk.Run([]);
}

protected override void Unload()
Expand Down
9 changes: 2 additions & 7 deletions src/PythonPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@

namespace Hosihikari.ScriptManagement;

public class PythonPlugin : Plugin
public class PythonPlugin(FileInfo fileInfo) : Plugin(fileInfo)
{
private readonly ScriptEngine _scriptEngine;

public PythonPlugin(FileInfo fileInfo) : base(fileInfo)
{
_scriptEngine = Python.CreateEngine();
}
private readonly ScriptEngine _scriptEngine = Python.CreateEngine();

protected override void Initialize()
{
Expand Down

0 comments on commit 0f01c19

Please sign in to comment.