Skip to content

Commit

Permalink
Refactor CoreInterop and update dependent files
Browse files Browse the repository at this point in the history
The heavy refactoring of the CoreInterop codebase involved the removal of `CoreNative.cs` and `CoreNative.g.cs` file. This was compensated by adding the required logic in `ScenariumCore.cs`, including DLL imports. Additional changes were implemented to `ScenariumCore` to facilitate communication with its DLL. Commit also includes changes to `prebuild.bat`, updating the path to the DLL, and rewriting several functions in Rust code (in `graph_api.rs` and `func_lib_api.rs`). Notably, Graph and FuncLib now export to YAML. Additionally, removed redundant `ScenariumCore.Init()` calls in `Program.cs` and `MainWindow.xaml.cs`.
  • Loading branch information
xorza committed Jun 15, 2024
1 parent d80e7a6 commit af150e8
Show file tree
Hide file tree
Showing 9 changed files with 164 additions and 411 deletions.
12 changes: 4 additions & 8 deletions ScenariumEditor.NET/ConsolePlayground/Program.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using System.Diagnostics;
using CoreInterop;
using CoreInterop;


ScenariumCore.Init();
var scenarium = new ScenariumCore();
var buf = scenarium.GetGraph();

for (int i = 0; i < 3; i++) {
var scenarium = new ScenariumCore();
// scenarium.GetNodes();
scenarium.GetFuncs();
}
Console.WriteLine(buf);
208 changes: 0 additions & 208 deletions ScenariumEditor.NET/CoreInterop/CoreNative.cs

This file was deleted.

111 changes: 0 additions & 111 deletions ScenariumEditor.NET/CoreInterop/CoreNative.g.cs

This file was deleted.

Loading

0 comments on commit af150e8

Please sign in to comment.