Snapshot for release 2026.10.13.1 (internal d2b5fb3)

This commit is contained in:
Tom Bohar 2026-10-13 14:25:49 -04:00
commit 319740ff5d
291 changed files with 58505 additions and 2107 deletions

View file

@ -17,16 +17,28 @@ public static unsafe class PluginExports
[UnmanagedCallersOnly(EntryPoint = "RynthPluginShutdown", CallConvs = new[] { typeof(CallConvCdecl) })]
public static void Shutdown()
{
Runtime.Shutdown(); // stops the transport: joins its thread and tasks
NetInterface.Release();
ReleaseSnapshot();
// Each step is guarded alone: an exception escaping a native export fail-fasts the client.
try { Runtime.Shutdown(); } // stops the transport: joins its thread and tasks
catch { }
try { NetInterface.Release(); }
catch { }
try { ReleaseSnapshot(); }
catch { }
}
[UnmanagedCallersOnly(EntryPoint = "RynthPluginName", CallConvs = new[] { typeof(CallConvCdecl) })]
public static IntPtr GetName() => RynthNetPlugin.NamePointer;
public static IntPtr GetName()
{
try { return RynthNetPlugin.NamePointer; }
catch { return IntPtr.Zero; }
}
[UnmanagedCallersOnly(EntryPoint = "RynthPluginVersion", CallConvs = new[] { typeof(CallConvCdecl) })]
public static IntPtr GetVersion() => RynthNetPlugin.VersionPointer;
public static IntPtr GetVersion()
{
try { return RynthNetPlugin.VersionPointer; }
catch { return IntPtr.Zero; }
}
[UnmanagedCallersOnly(EntryPoint = "RynthPluginTick", CallConvs = new[] { typeof(CallConvCdecl) })]
public static void Tick() => Runtime.OnTick();

View file

@ -60,6 +60,11 @@ public sealed unsafe partial class RynthNetPlugin
if (Host.HasIsPortaling) w.WriteBoolean("portal", Host.IsPortaling());
if (Host.HasGetBusyState) w.WriteNumber("busy", Host.GetBusyState());
if (Host.HasGetVitae && _playerId != 0) w.WriteNumber("vitae", Math.Round(Host.GetVitae(_playerId), 3));
// 0.1.1: the character's object id (the same on every client: the engine's
// Characters panel selects it when it is in view) and AC's combat mode
// (1 peace, 2 melee, 4 missile, 8 magic). Older clients just don't send them.
if (_playerId != 0) w.WriteNumber("id", _playerId);
if (Host.HasGetCurrentCombatMode) w.WriteNumber("cmode", Host.GetCurrentCombatMode());
if (bot != null)
{
try

View file

@ -23,7 +23,7 @@ namespace RynthCore.Plugin.RynthNet;
public sealed partial class RynthNetPlugin : RynthPluginBase
{
public const string PluginVersion = "0.1.0";
public const string PluginVersion = "0.1.1";
internal static readonly IntPtr NamePointer = Marshal.StringToHGlobalAnsi("RynthNet");
internal static readonly IntPtr VersionPointer = Marshal.StringToHGlobalAnsi(PluginVersion);