BitcoderCZ.Fancade.Runtime.Compiled
1.0.0-develop.15
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
This is a prerelease version of BitcoderCZ.Fancade.Runtime.Compiled.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BitcoderCZ.Fancade.Runtime.Compiled --version 1.0.0-develop.15
NuGet\Install-Package BitcoderCZ.Fancade.Runtime.Compiled -Version 1.0.0-develop.15
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BitcoderCZ.Fancade.Runtime.Compiled" Version="1.0.0-develop.15" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BitcoderCZ.Fancade.Runtime.Compiled" Version="1.0.0-develop.15" />
<PackageReference Include="BitcoderCZ.Fancade.Runtime.Compiled" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BitcoderCZ.Fancade.Runtime.Compiled --version 1.0.0-develop.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BitcoderCZ.Fancade.Runtime.Compiled, 1.0.0-develop.15"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BitcoderCZ.Fancade.Runtime.Compiled@1.0.0-develop.15
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BitcoderCZ.Fancade.Runtime.Compiled&version=1.0.0-develop.15&prerelease
#tool nuget:?package=BitcoderCZ.Fancade.Runtime.Compiled&version=1.0.0-develop.15&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BitcoderCZ.Fancade.Runtime.Compiled
Transpile fancade scripts into C# and run them.
This package is in beta. APIs may be changed or removed.
Sample usage
// load game
Game game;
using (var fs = File.OpenRead("game.fcg"))
{
game = Game.LoadCompressed(fs);
}
// build ast
var idOfLevelToExecute = RawGame.CurrentNumbStockPrefabs;
var ast = FcAST.Parse(game.Prefabs, idOfLevelToExecute);
// create runner
var ctx = new MyCtx();
var runner = FcAstCompiler.Compile(ast, ctx, new FcAstCompiler.Options(AssemblyLoadContext.Default)
{
StatementExecutionMode = FcAstCompiler.StatementExecutionMode.StateMachine,
TerminalInfos = PrefabTerminalInfo.Create(game.Prefabs),
});
// if you want to view the transpiled code:
//FcAstCompiler.TryCompile(ast, ctx, new FcAstCompiler.Options(AssemblyLoadContext.Default)
//{
// StatementExecutionMode = FcAstCompiler.StatementExecutionMode.StateMachine,
// TerminalInfos = PrefabTerminalInfo.Create(game.Prefabs),
// HumanReadable = true,
//}, out var code, out var runner, out var diagnostics);
// execute 1s (60 frames)
for (var i = 0; i < 60; i++)
{
var lateUpdate = runner.RunFrame();
// run late update blocks
lateUpdate();
ctx.CurrentFrame++;
}
class MyCtx : IRuntimeContext
{
public long CurrentFrame { get; set; }
public void InspectValue(RuntimeValue value, SignalType type, string? variableName, ushort prefabId, int3 inspectBlockPosition)
{
var msg = $"[INSP] {value.GetValueOfType(type)}, {(variableName is not null ? $"Var: {variableName}, " : string.Empty)}Pos: {inspectBlockPosition}, Type: {type}";
Console.WriteLine(msg);
}
// ...
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- BitcoderCZ.Fancade (>= 4.0.0-develop.12)
- BitcoderCZ.Fancade.Editing (>= 4.0.0-develop.21)
- BitcoderCZ.Fancade.Runtime (>= 1.0.0-develop.24)
- BitcoderCZ.Maths (>= 1.1.0)
- Microsoft.CodeAnalysis.CSharp (>= 4.14.0)
- Microsoft.Extensions.ObjectPool (>= 9.0.9)
-
net8.0
- BitcoderCZ.Fancade (>= 4.0.0-develop.12)
- BitcoderCZ.Fancade.Editing (>= 4.0.0-develop.21)
- BitcoderCZ.Fancade.Runtime (>= 1.0.0-develop.24)
- BitcoderCZ.Maths (>= 1.1.0)
- Microsoft.CodeAnalysis.CSharp (>= 4.14.0)
- Microsoft.Extensions.ObjectPool (>= 9.0.9)
-
net9.0
- BitcoderCZ.Fancade (>= 4.0.0-develop.12)
- BitcoderCZ.Fancade.Editing (>= 4.0.0-develop.21)
- BitcoderCZ.Fancade.Runtime (>= 1.0.0-develop.24)
- BitcoderCZ.Maths (>= 1.1.0)
- Microsoft.CodeAnalysis.CSharp (>= 4.14.0)
- Microsoft.Extensions.ObjectPool (>= 9.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 229 | 9/15/2025 |
| 1.0.0-develop.15 | 211 | 12/17/2025 |
| 1.0.0-develop.14 | 126 | 10/7/2025 |
| 1.0.0-develop.13 | 120 | 10/7/2025 |
| 1.0.0-develop.12 | 122 | 10/7/2025 |
| 1.0.0-develop.11 | 119 | 10/6/2025 |
| 1.0.0-develop.10 | 120 | 10/6/2025 |
| 1.0.0-develop.9 | 118 | 10/4/2025 |
| 1.0.0-develop.8 | 114 | 10/4/2025 |
| 1.0.0-develop.7 | 116 | 10/4/2025 |
| 1.0.0-develop.6 | 125 | 10/1/2025 |
| 1.0.0-develop.5 | 127 | 10/1/2025 |
| 1.0.0-develop.4 | 131 | 9/30/2025 |
| 1.0.0-develop.3 | 124 | 9/30/2025 |
| 1.0.0-develop.2 | 126 | 9/30/2025 |
| 1.0.0-develop.1 | 126 | 9/29/2025 |