feat(suite): Vaulted Dungeons tab, Oracle breeding/charms, Mini Remote Options
Port tonight's Suite work onto standing sk for upstream release prep: ILT Vaulted Dungeons (Options-gated), chat 0x1C channels, Oracle Charms/Pet Breeding, Mini Remote Options opens Settings. HandWrittenVersion stays 0.5.0-legacy-ui. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
dc8cc9bc81
commit
0532d8d981
43 changed files with 2129 additions and 197 deletions
|
|
@ -1,13 +1,12 @@
|
|||
// ============================================================================
|
||||
// RynthSuite - Plugins/Shared/RynthIltDataApi.cs
|
||||
// The "RynthILT.Data" interface: the Infinite Leaftide data RynthILT's Mini Remote Charms
|
||||
// and Banking tabs show, for other plugins to draw (SilentKelpie's RynthOracle Character
|
||||
// tab and RynthInventory Global Inventory "Banking" tab read it; neither is in this tree yet):
|
||||
// - the registry charms and Guardian Hands (GetCharmsJson, ToggleCharm);
|
||||
// - the bank balances of every character RynthILT has seen on this server, and
|
||||
// deposits, withdrawals, transfers and balance reads (GetBankJson, BankCommand);
|
||||
// - version 2: the pet breeding tracker (GetPetBreedingJson, PetBreedingCommand).
|
||||
// Separate from "RynthServer.Profile" (the server's settings) and "RynthILT.Hub" (RynthAi's
|
||||
// The "RynthILT.Data" interface: the Infinite Leaftide data other plugins draw now that
|
||||
// the Mini Remote's Charms and Banking tabs are gone (2026-10-13):
|
||||
// - RynthOracle's Character tab lists the registry charms (GetCharmsJson, ToggleCharm);
|
||||
// - RynthInventory's Global Inventory "Banking" tab lists the bank balances of every
|
||||
// character RynthILT has seen on this server, and sends deposits, withdrawals,
|
||||
// transfers and balance reads (GetBankJson, BankCommand).
|
||||
// Separate from "RynthILT.Server" (the feature profile) and "RynthILT.Hub" (RynthAi's
|
||||
// exact-version table) so neither has to change for this.
|
||||
// Compiled into RynthILT and its readers (linked source), so the layout can't drift.
|
||||
//
|
||||
|
|
@ -47,11 +46,10 @@
|
|||
// transfer <currencyIndex> <amount> <noteIndex> <recipient name...>
|
||||
// The reader confirms a transfer with the player before sending it (RynthILT doesn't ask again).
|
||||
//
|
||||
// Version 2 (RynthILT 0.3.1) appends GetPetBreedingJson and PetBreedingCommand: the data of the
|
||||
// pet breeding tracker RynthILT draws in the Mini Remote's Pets > Breeding sub-tab (no plugin in
|
||||
// this tree reads it yet). Readers still query version 1 and accept a version-1 table, so charms
|
||||
// and the bank keep working with an older RynthILT; they use the breeding functions only when
|
||||
// the table says Version >= 2 and is that big (HasPetBreeding).
|
||||
// Version 2 (RynthILT 0.2.7) appends GetPetBreedingJson and PetBreedingCommand (RynthOracle's
|
||||
// Pet Breeding tab). Readers still query version 1 and accept a version-1 table, so charms and
|
||||
// the bank keep working with an older RynthILT; they use the breeding functions only when the
|
||||
// table says Version >= 2 and is that big (HasPetBreeding).
|
||||
//
|
||||
// GetPetBreedingJson payload (IltPetBreeding.BuildJson; read leniently):
|
||||
// { "available": true, "world": "...", "enabled": "on"|"off"|"unknown", "maturity": "...", "bond": "...",
|
||||
|
|
@ -128,7 +126,7 @@ public unsafe struct RynthIltDataApiV1
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// A reader of "RynthILT.Data". Looks the table up through the host,
|
||||
/// A reader of "RynthILT.Data" (RynthOracle, RynthInventory). Looks the table up through the host,
|
||||
/// re-queried while RynthILT is missing or after it unloads (Version 0), and copies a JSON out on
|
||||
/// request. Pump thread only.
|
||||
/// </summary>
|
||||
|
|
|
|||
71
Plugins/Shared/RynthIltServerApi.cs
Normal file
71
Plugins/Shared/RynthIltServerApi.cs
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
// ============================================================================
|
||||
// RynthSuite - Plugins/Shared/RynthIltServerApi.cs
|
||||
// The "RynthILT.Server" interface: what RynthILT knows about the Infinite Leaftide
|
||||
// server, for any plugin that wants it without drawing RynthILT's UI (RynthOracle's
|
||||
// Fellowship tab, for one). One call hands out a JSON snapshot: whether this is an
|
||||
// ILT world, every Leaftide feature RynthILT supports with the server's state for it,
|
||||
// and the server's fellowship rules.
|
||||
// Separate from "RynthILT.Hub" (RynthIltHubApi.cs) so that interface, which RynthAi asks
|
||||
// for at an exact version, never has to change for this.
|
||||
// Compiled into RynthILT and its readers (linked source), so the layout can't drift.
|
||||
//
|
||||
// Rules (as the other shared interfaces):
|
||||
// - Append-only: new functions go at the end, and Version goes up.
|
||||
// - Strings are UTF-8, NUL-terminated. The JSON itself is plain ASCII.
|
||||
// - Every function returns safely (no exception crosses the boundary).
|
||||
// - The table is allocated once per loaded copy of RynthILT and never freed; shutdown
|
||||
// sets Version to 0, and a reader re-queries (host GetPluginInterface) when it sees that.
|
||||
//
|
||||
// GetProfileJson payload (every field may be missing on an older RynthILT; read leniently):
|
||||
// {
|
||||
// "ilt": true, // ILT world (its world list, or the character's override)
|
||||
// "world": "InfiniteLeaftide", // the world name the server announced ("" before login)
|
||||
// "forced": false, // "Treat this world as ILT" is on
|
||||
// "source": "probe", // where the feature bits came from ("ilt-features", "probe", "")
|
||||
// "checked": "2026-10-13T21:25:37Z", // last server-options check (UTC), "" = never
|
||||
// "features": [ { "key": "bank", "label": "Banking", "group": "Character",
|
||||
// "state": 1, "where": "Mini Remote > Banking tab" }, ... ],
|
||||
// // state: 1 on, 0 off, -1 not known yet
|
||||
// "fellowship": { "maxMembers": 29, "zoneShare": 1, "blackjack": 0, "luminanceShare": 1 }
|
||||
// }
|
||||
// ============================================================================
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace RynthCore.Plugin.Shared;
|
||||
|
||||
/// <summary>Constants of the "RynthILT.Server" interface.</summary>
|
||||
public static class RynthIltServer
|
||||
{
|
||||
/// <summary>The providing plugin's display name.</summary>
|
||||
public const string PluginName = "RynthILT";
|
||||
|
||||
/// <summary>Feature state in the profile JSON: the server reports it on.</summary>
|
||||
public const int StateOn = 1;
|
||||
/// <summary>Feature state: the server reports it off.</summary>
|
||||
public const int StateOff = 0;
|
||||
/// <summary>Feature state: not known yet (not checked, not an ILT world, or no RynthILT).</summary>
|
||||
public const int StateUnknown = -1;
|
||||
|
||||
/// <summary>A retail fellowship's member limit (what a reader assumes without RynthILT).</summary>
|
||||
public const int RetailFellowshipMax = 9;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct RynthIltServerApiV1
|
||||
{
|
||||
public const string InterfaceName = "RynthILT.Server";
|
||||
public const uint InterfaceVersion = 1;
|
||||
|
||||
public uint Version; // InterfaceVersion of the table RynthILT filled; 0 once it has shut down
|
||||
public uint StructSize; // sizeof(RynthIltServerApiV1) as RynthILT built it
|
||||
|
||||
/// <summary>
|
||||
/// GetProfileJson(buffer, capacity): writes the profile JSON (UTF-8, NUL-terminated) into
|
||||
/// buffer when it fits, and returns its length in bytes without the NUL. A return value of
|
||||
/// capacity or more means nothing was written: call again with a bigger buffer. 0 = nothing
|
||||
/// to report (RynthILT shutting down). Any thread (it hands out a snapshot RynthILT's pump
|
||||
/// rebuilds about once a second).
|
||||
/// </summary>
|
||||
public delegate* unmanaged[Cdecl]<byte*, int, int> GetProfileJson;
|
||||
}
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
// plugin-command broker (Host.SendPluginCommand, action "servercommands").
|
||||
//
|
||||
// A server plugin (RynthILT for Infinite Leaftide's /fship) knows its server's extra
|
||||
// commands and keeps them as a ServerCommandSet; it draws them itself (ServerCommandPanel.cs).
|
||||
// For another plugin's view of that section (SilentKelpie's RynthAi Fellowship tab, not in
|
||||
// this tree yet) the sender re-sends every few seconds while its server is active and sends
|
||||
// an empty list when it isn't, so the receiver drops a list that stops arriving (the sender
|
||||
// unloaded).
|
||||
// commands; RynthAi draws them in its own view of that section (the Fellowship tab). The
|
||||
// sender re-sends every few seconds while its server is active and sends an empty list when
|
||||
// it isn't, so the receiver drops a list that stops arriving (the sender unloaded).
|
||||
//
|
||||
// Payload: ANSI text, one record per line, fields split by tabs:
|
||||
// S <tab> section <tab> serverId <tab> serverName
|
||||
|
|
|
|||
Loading…
Reference in a new issue