Snapshot for release 2026.10.13.3 (internal c8b9b39)
This commit is contained in:
parent
401a8613cd
commit
67574b56e6
17 changed files with 894 additions and 18 deletions
|
|
@ -267,6 +267,27 @@ internal static class AppraisalHooks
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// v84 (GetObjectProperties): a copy of everything the object's last identify carried (with later
|
||||
/// updates folded in) and its spell book, or false when it was never identified. Any thread.
|
||||
/// </summary>
|
||||
internal static bool TryCopyIdentify(uint guid, out PropertyBag? bag, out uint[]? spells)
|
||||
{
|
||||
bag = null;
|
||||
spells = null;
|
||||
lock (_cacheLock)
|
||||
{
|
||||
if (_bags.TryGetValue(guid, out PropertyBag? b))
|
||||
{
|
||||
bag = new PropertyBag();
|
||||
bag.MergeFrom(b);
|
||||
}
|
||||
if (_spellIdCache.TryGetValue(guid, out uint[]? s))
|
||||
spells = (uint[])s.Clone();
|
||||
}
|
||||
return bag != null || spells != null;
|
||||
}
|
||||
|
||||
public static bool TryGetCachedInt64Property(uint guid, uint stype, out long value)
|
||||
{
|
||||
value = 0;
|
||||
|
|
|
|||
|
|
@ -1438,9 +1438,26 @@ internal static class ClientObjectHooks
|
|||
if (!TryGetPlayerQualitiesPtr(out IntPtr qualities) || qualities == IntPtr.Zero)
|
||||
return;
|
||||
IntPtr bq = qualities + CBaseQualitiesOffset;
|
||||
if (!IsReadableSpan(bq, 0x24))
|
||||
PropertyBag? bag = WalkQualitiesBag(qualities, _qualitiesInt64Layout >= 0, _qualitiesFloatLayout >= 0);
|
||||
if (bag == null)
|
||||
return;
|
||||
|
||||
VerifyQualitiesLayout(bq, bag);
|
||||
if (_qualitiesInt64Layout < 0) bag.Int64s.Clear();
|
||||
if (_qualitiesFloatLayout < 0) bag.Floats.Clear();
|
||||
_playerQualities = new OwnedBag(playerId, bag);
|
||||
}
|
||||
|
||||
// Every table of one CACQualities' CBaseQualities, copied (MAIN THREAD ONLY; every node is
|
||||
// page-checked before it is read). The int64 and float tables (8-byte values) only when asked:
|
||||
// their node layout is verified once against AC's own readers (VerifyQualitiesLayout).
|
||||
// Null when the CBaseQualities header isn't readable.
|
||||
private static PropertyBag? WalkQualitiesBag(IntPtr qualities, bool int64s, bool floats)
|
||||
{
|
||||
IntPtr bq = qualities + CBaseQualitiesOffset;
|
||||
if (!IsReadableSpan(bq, 0x24))
|
||||
return null;
|
||||
|
||||
var bag = new PropertyBag();
|
||||
WalkQualitiesTable(Marshal.ReadIntPtr(bq + 0x08), 8, (k, n) => bag.Ints[k] = Marshal.ReadInt32(n + 4));
|
||||
WalkQualitiesTable(Marshal.ReadIntPtr(bq + 0x10), 8, (k, n) => bag.Bools[k] = Marshal.ReadInt32(n + 4) != 0);
|
||||
|
|
@ -1454,19 +1471,127 @@ internal static class ClientObjectHooks
|
|||
if (len > 1 && len < 4096 && IsReadableSpan(buf + 20, len - 1))
|
||||
bag.Strings[k] = Marshal.PtrToStringAnsi(buf + 20, len - 1) ?? string.Empty;
|
||||
});
|
||||
if (_qualitiesInt64Layout >= 0)
|
||||
if (int64s)
|
||||
WalkQualitiesTable(Marshal.ReadIntPtr(bq + 0x0C), 16, (k, n) => bag.Int64s[k] = Marshal.ReadInt64(n + 8));
|
||||
if (_qualitiesFloatLayout >= 0)
|
||||
if (floats)
|
||||
WalkQualitiesTable(Marshal.ReadIntPtr(bq + 0x14), 16, (k, n) =>
|
||||
{
|
||||
double v = BitConverter.Int64BitsToDouble(Marshal.ReadInt64(n + 8));
|
||||
if (double.IsFinite(v)) bag.Floats[k] = v;
|
||||
});
|
||||
return bag;
|
||||
}
|
||||
|
||||
VerifyQualitiesLayout(bq, bag);
|
||||
if (_qualitiesInt64Layout < 0) bag.Int64s.Clear();
|
||||
if (_qualitiesFloatLayout < 0) bag.Floats.Clear();
|
||||
_playerQualities = new OwnedBag(playerId, bag);
|
||||
// ── v84: every property of one object (GetObjectProperties, ObjectPropertyDump) ──
|
||||
// The client's qualities tables of any object, read on AC's main thread: live when the call
|
||||
// is made there, else the plugin's request is served at the next main-thread tick
|
||||
// (ServeObjectQualitiesRequest, next to PrefetchPlayerStats) and the copy answers off-thread
|
||||
// for a few seconds. One object at a time: it is a diagnostic (/ub propertydump).
|
||||
private sealed record ObjectQualities(uint Owner, PropertyBag? Bag, long AtMs);
|
||||
private static volatile ObjectQualities? _objectQualities;
|
||||
private static uint _objectQualitiesRequest;
|
||||
private const long ObjectQualitiesKeepMs = 5000, ObjectQualitiesRefreshMs = 500;
|
||||
|
||||
/// <summary>
|
||||
/// v84: the client's qualities tables of <paramref name="objectId"/> (null: it has none, or
|
||||
/// not read yet). Off AC's main thread a walk is requested and <paramref name="pending"/> is
|
||||
/// set until the first copy for this object exists. Never touches AC memory off the main thread.
|
||||
/// The bag returned is never changed afterwards (callers only read it).
|
||||
/// </summary>
|
||||
internal static PropertyBag? GetObjectQualitiesForDump(uint objectId, out bool pending, out bool read)
|
||||
{
|
||||
pending = false;
|
||||
read = false;
|
||||
if (objectId == 0)
|
||||
return null;
|
||||
if (MainThreadGuard.IsOnMainThread())
|
||||
{
|
||||
PropertyBag? live = TryWalkObjectQualitiesLive(objectId);
|
||||
read = live != null;
|
||||
return live;
|
||||
}
|
||||
long now = Environment.TickCount64;
|
||||
ObjectQualities? q = _objectQualities;
|
||||
if (q != null && q.Owner == objectId && now - q.AtMs <= ObjectQualitiesKeepMs)
|
||||
{
|
||||
if (now - q.AtMs > ObjectQualitiesRefreshMs)
|
||||
System.Threading.Volatile.Write(ref _objectQualitiesRequest, objectId);
|
||||
read = q.Bag != null;
|
||||
return q.Bag;
|
||||
}
|
||||
System.Threading.Volatile.Write(ref _objectQualitiesRequest, objectId);
|
||||
pending = true;
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>v84: serves a plugin's qualities request (MAIN THREAD; returns at once when there is none).</summary>
|
||||
public static void ServeObjectQualitiesRequest()
|
||||
{
|
||||
if (System.Threading.Volatile.Read(ref _objectQualitiesRequest) == 0 || !MainThreadGuard.IsOnMainThread())
|
||||
return;
|
||||
uint id = System.Threading.Interlocked.Exchange(ref _objectQualitiesRequest, 0);
|
||||
if (id == 0)
|
||||
return;
|
||||
PropertyBag? bag = null;
|
||||
try { bag = TryWalkObjectQualitiesLive(id); }
|
||||
catch (Exception ex) { RynthLog.Compat($"Compat: object qualities walk 0x{id:X8} failed - {ex.GetType().Name}: {ex.Message}"); }
|
||||
_objectQualities = new ObjectQualities(id, bag, Environment.TickCount64);
|
||||
}
|
||||
|
||||
/// <summary>Logout: the copy belongs to the session that ended.</summary>
|
||||
internal static void ClearObjectQualities()
|
||||
{
|
||||
_objectQualities = null;
|
||||
System.Threading.Volatile.Write(ref _objectQualitiesRequest, 0);
|
||||
}
|
||||
|
||||
// MAIN THREAD ONLY: a freshly resolved weenie (never a cached pointer), its qualities pointer,
|
||||
// then the page-checked table walk. Int64 / float tables only once their node layout was
|
||||
// verified on the player's own tables.
|
||||
private static PropertyBag? TryWalkObjectQualitiesLive(uint objectId)
|
||||
{
|
||||
if (!MainThreadGuard.IsOnMainThread())
|
||||
return null;
|
||||
if (_getWeenieObject == null)
|
||||
{
|
||||
if (!Probe() || _getWeenieObject == null)
|
||||
return null;
|
||||
}
|
||||
try
|
||||
{
|
||||
IntPtr weeniePtr;
|
||||
if (SehTrampoline.IsAvailable)
|
||||
{
|
||||
weeniePtr = SehTrampoline.CdeclPtrUint(_getWeenieObjectPtr, objectId, out bool av);
|
||||
if (av)
|
||||
return null;
|
||||
}
|
||||
else
|
||||
{
|
||||
weeniePtr = _getWeenieObject(objectId);
|
||||
}
|
||||
if (weeniePtr == IntPtr.Zero || !TryGetQualitiesPtr(weeniePtr, out IntPtr qualities) || qualities == IntPtr.Zero)
|
||||
return null;
|
||||
// Only a real CACQualities (the vtable learned from the player's): no AC calls are made
|
||||
// here, but a sibling object in the qualities slot would read as garbage properties.
|
||||
if (!IsCacQualitiesObject(qualities))
|
||||
return null;
|
||||
return WalkQualitiesBag(qualities, _qualitiesInt64Layout == 1, _qualitiesFloatLayout == 1);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>v84: the CreateObject copy's fields of <paramref name="objectId"/> as properties (the ~0.1 s
|
||||
/// old PublicWeenieDesc snapshot). False when the last walk didn't see it. Any thread; never touches AC.</summary>
|
||||
internal static bool CopyCreateDataProperties(uint objectId, PropertyBag dst)
|
||||
{
|
||||
if (!TryGetPwdSnapshot(objectId, out PwdEntry e))
|
||||
return false;
|
||||
PwdLayout.FillBag(e.Bytes, dst);
|
||||
return true;
|
||||
}
|
||||
|
||||
// The 8-byte node layout is checked once against AC's own readers: a walked value must
|
||||
|
|
|
|||
53
src/RynthCore.Engine/Compatibility/ObjectPropertyDump.cs
Normal file
53
src/RynthCore.Engine/Compatibility/ObjectPropertyDump.cs
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// ============================================================================
|
||||
// RynthCore.Engine - Compatibility/ObjectPropertyDump.cs
|
||||
//
|
||||
// Plugin API v84 (GetObjectProperties): gathers every property the engine
|
||||
// knows for one object and encodes it (ObjectPropertyRecord). Sources:
|
||||
// - the CreateObject copy (PublicWeenieDesc snapshot, ~0.1 s old);
|
||||
// - the client's own qualities tables (CBaseQualities), walked on AC's main
|
||||
// thread (live there; off it, requested for the next main-thread tick);
|
||||
// - the last identify (all six tables + profile values, spell book);
|
||||
// - the server's public property updates, and for the player its own record
|
||||
// (PlayerDescription + private updates) and the 1 s qualities snapshot.
|
||||
// Off the main thread nothing here touches AC memory: every source is a copy.
|
||||
// ============================================================================
|
||||
|
||||
using System;
|
||||
|
||||
namespace RynthCore.Engine.Compatibility;
|
||||
|
||||
internal static class ObjectPropertyDump
|
||||
{
|
||||
/// <summary>The record for <paramref name="objectId"/>, or null when the engine knows nothing about it.</summary>
|
||||
public static byte[]? Collect(uint objectId)
|
||||
{
|
||||
if (objectId == 0)
|
||||
return null;
|
||||
|
||||
uint me = ClientHelperHooks.GetPlayerId();
|
||||
bool isPlayer = me != 0 && me == objectId;
|
||||
ObjectPropertyFlags flags = isPlayer ? ObjectPropertyFlags.IsPlayer : ObjectPropertyFlags.None;
|
||||
|
||||
var createData = new PropertyBag();
|
||||
bool hasCreate = ClientObjectHooks.CopyCreateDataProperties(objectId, createData);
|
||||
if (hasCreate) flags |= ObjectPropertyFlags.HasCreateData;
|
||||
|
||||
PropertyBag? qualities = ClientObjectHooks.GetObjectQualitiesForDump(objectId, out bool pending, out bool read);
|
||||
if (read) flags |= ObjectPropertyFlags.QualitiesRead;
|
||||
if (pending) flags |= ObjectPropertyFlags.QualitiesPending;
|
||||
if (isPlayer && qualities == null)
|
||||
qualities = ClientObjectHooks.PlayerQualitiesSnapshot(objectId); // never changed once published
|
||||
|
||||
AppraisalHooks.TryCopyIdentify(objectId, out PropertyBag? identify, out uint[]? spells);
|
||||
PropertyBag? updates = PropertyUpdateHooks.CopyPublicUpdates(objectId);
|
||||
PropertyBag? self = isPlayer ? PropertyUpdateHooks.CopySelf() : null;
|
||||
|
||||
if (AppraisalHooks.HasAppraisalData(objectId)) flags |= ObjectPropertyFlags.HasIdData;
|
||||
long lastId = AppraisalHooks.GetLastIdTime(objectId);
|
||||
|
||||
PropertyBag all = ObjectPropertyRecord.Combine(isPlayer, hasCreate ? createData : null, qualities, identify, updates, self);
|
||||
if (all.Count == 0 && (spells == null || spells.Length == 0) && !hasCreate && !pending)
|
||||
return null;
|
||||
return ObjectPropertyRecord.Encode(all, spells, flags, lastId);
|
||||
}
|
||||
}
|
||||
181
src/RynthCore.Engine/Compatibility/ObjectPropertyRecord.cs
Normal file
181
src/RynthCore.Engine/Compatibility/ObjectPropertyRecord.cs
Normal file
|
|
@ -0,0 +1,181 @@
|
|||
// ============================================================================
|
||||
// RynthCore.Engine - Compatibility/ObjectPropertyRecord.cs
|
||||
//
|
||||
// Plugin API v84 (GetObjectProperties): every property the engine knows for
|
||||
// one object, as one compact buffer the SDK turns into a dictionary per type
|
||||
// (RynthCore.PluginSdk ObjectProperties.TryParse). Pure: no AC memory, no
|
||||
// engine state, so tools\ObjectPropertyTests compiles it in with the SDK's
|
||||
// parser and round-trips it.
|
||||
//
|
||||
// Before v84 a plugin could only ask for one key at a time, so RynthAi's
|
||||
// /ub propertydump probed fixed ranges (int 0-400, bool 0-300, ...) and missed
|
||||
// every key outside them, had no spell book and no names for int64 / float /
|
||||
// data id / instance id properties. UtilityBelt prints every key Decal holds.
|
||||
//
|
||||
// Record (little-endian):
|
||||
// +0 u32 magic 0x31445052 ("RPD1")
|
||||
// +4 u16 format version (1)
|
||||
// +6 u16 flags (ObjectPropertyFlags)
|
||||
// +8 i64 last identify time, Unix seconds (0 never identified)
|
||||
// +16 u32 entry count
|
||||
// +20 entries, sorted by kind then key:
|
||||
// u8 kind (PropertyKind 0-6, 7 = a spell of the spell book), u32 key, value:
|
||||
// Int i32 | Int64 i64 | Bool u8 | Float f64 | String u16 byte count + UTF-8 |
|
||||
// DataId u32 | InstanceId u32 | Spell (no value; the key is the spell id)
|
||||
// ============================================================================
|
||||
|
||||
using System;
|
||||
using System.Buffers.Binary;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace RynthCore.Engine.Compatibility;
|
||||
|
||||
/// <summary>v84 record flags (the SDK's ObjectPropertyFlags has the same bits).</summary>
|
||||
[Flags]
|
||||
internal enum ObjectPropertyFlags : ushort
|
||||
{
|
||||
None = 0,
|
||||
/// <summary>The server answered an identify (appraisal) for the object this session.</summary>
|
||||
HasIdData = 0x0001,
|
||||
/// <summary>The client's own qualities tables of the object (CBaseQualities) were read in.</summary>
|
||||
QualitiesRead = 0x0002,
|
||||
/// <summary>Asked off AC's main thread: a walk of the object's qualities tables was requested for
|
||||
/// the next main-thread tick. Ask again in a moment for the full set.</summary>
|
||||
QualitiesPending = 0x0004,
|
||||
/// <summary>The object is the player's character.</summary>
|
||||
IsPlayer = 0x0008,
|
||||
/// <summary>The client's CreateObject copy (PublicWeenieDesc snapshot) of the object was read in.</summary>
|
||||
HasCreateData = 0x0010,
|
||||
}
|
||||
|
||||
internal static class ObjectPropertyRecord
|
||||
{
|
||||
public const uint Magic = 0x31445052; // "RPD1"
|
||||
public const ushort FormatVersion = 1;
|
||||
public const int HeaderSize = 20;
|
||||
public const byte KindSpell = 7;
|
||||
/// <summary>Longest string kept (bytes of UTF-8); longer ones are cut at a character boundary.</summary>
|
||||
public const int MaxStringBytes = 4096;
|
||||
/// <summary>Most spells kept from a spell book.</summary>
|
||||
public const int MaxSpells = 1024;
|
||||
|
||||
/// <summary>
|
||||
/// One object's properties from every source, in the order the per-key reads
|
||||
/// (TryGetObject*Property / PropertyCaches) prefer them, so the dump shows what a per-key read
|
||||
/// returns. Lowest first, later sources replace same-key values:
|
||||
/// the player: CreateObject copy, last identify, client qualities, public updates, own record
|
||||
/// (PlayerDescription + private updates);
|
||||
/// any other: CreateObject copy, client qualities, public updates, last identify (instance
|
||||
/// ids: the last identify, then public updates over it).
|
||||
/// Then the client's own stack size and container / wielder win when set, as in the per-key reads.
|
||||
/// Null sources are skipped. Never changes the sources.
|
||||
/// </summary>
|
||||
public static PropertyBag Combine(bool isPlayer, PropertyBag? createData, PropertyBag? qualities,
|
||||
PropertyBag? identify, PropertyBag? publicUpdates, PropertyBag? self)
|
||||
{
|
||||
var all = new PropertyBag();
|
||||
if (createData != null) all.MergeFrom(createData);
|
||||
if (isPlayer)
|
||||
{
|
||||
if (identify != null) all.MergeFrom(identify);
|
||||
if (qualities != null) all.MergeFrom(qualities);
|
||||
if (publicUpdates != null) all.MergeFrom(publicUpdates);
|
||||
if (self != null) all.MergeFrom(self);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (qualities != null) all.MergeFrom(qualities);
|
||||
if (publicUpdates != null) all.MergeFrom(publicUpdates);
|
||||
if (identify != null) all.MergeFrom(identify);
|
||||
if (identify != null && publicUpdates != null)
|
||||
foreach (var kv in publicUpdates.InstanceIds) all.InstanceIds[kv.Key] = kv.Value;
|
||||
}
|
||||
if (createData != null)
|
||||
{
|
||||
if (createData.Ints.TryGetValue(12, out int stack) && stack > 0) all.Ints[12] = stack; // StackSize
|
||||
if (createData.InstanceIds.TryGetValue(2, out uint container) && container != 0) all.InstanceIds[2] = container;
|
||||
if (createData.InstanceIds.TryGetValue(3, out uint wielder) && wielder != 0) all.InstanceIds[3] = wielder;
|
||||
}
|
||||
return all;
|
||||
}
|
||||
|
||||
/// <summary>Encodes the record (the layout above). Spells are kept in their spell book order, without repeats.</summary>
|
||||
public static byte[] Encode(PropertyBag bag, IReadOnlyList<uint>? spells, ObjectPropertyFlags flags, long lastIdTime)
|
||||
{
|
||||
var strings = new List<(uint Key, byte[] Bytes)>(bag.Strings.Count);
|
||||
foreach (uint key in SortedKeys(bag.Strings.Keys))
|
||||
strings.Add((key, Utf8Cut(bag.Strings[key] ?? string.Empty)));
|
||||
|
||||
var spellList = new List<uint>();
|
||||
if (spells != null)
|
||||
{
|
||||
var seen = new HashSet<uint>();
|
||||
foreach (uint s in spells)
|
||||
if (s != 0 && seen.Add(s) && spellList.Count < MaxSpells) spellList.Add(s);
|
||||
}
|
||||
|
||||
int count = bag.Ints.Count + bag.Int64s.Count + bag.Bools.Count + bag.Floats.Count + strings.Count
|
||||
+ bag.DataIds.Count + bag.InstanceIds.Count + spellList.Count;
|
||||
int size = HeaderSize
|
||||
+ bag.Ints.Count * 9 + bag.Int64s.Count * 13 + bag.Bools.Count * 6 + bag.Floats.Count * 13
|
||||
+ bag.DataIds.Count * 9 + bag.InstanceIds.Count * 9 + spellList.Count * 5;
|
||||
foreach (var s in strings) size += 7 + s.Bytes.Length;
|
||||
|
||||
byte[] buf = new byte[size];
|
||||
Span<byte> o = buf;
|
||||
BinaryPrimitives.WriteUInt32LittleEndian(o, Magic);
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(o.Slice(4), FormatVersion);
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(o.Slice(6), (ushort)flags);
|
||||
BinaryPrimitives.WriteInt64LittleEndian(o.Slice(8), lastIdTime);
|
||||
BinaryPrimitives.WriteUInt32LittleEndian(o.Slice(16), (uint)count);
|
||||
int p = HeaderSize;
|
||||
|
||||
foreach (uint k in SortedKeys(bag.Ints.Keys))
|
||||
{ p = Head(o, p, PropertyKind.Int, k); BinaryPrimitives.WriteInt32LittleEndian(o.Slice(p), bag.Ints[k]); p += 4; }
|
||||
foreach (uint k in SortedKeys(bag.Int64s.Keys))
|
||||
{ p = Head(o, p, PropertyKind.Int64, k); BinaryPrimitives.WriteInt64LittleEndian(o.Slice(p), bag.Int64s[k]); p += 8; }
|
||||
foreach (uint k in SortedKeys(bag.Bools.Keys))
|
||||
{ p = Head(o, p, PropertyKind.Bool, k); o[p++] = bag.Bools[k] ? (byte)1 : (byte)0; }
|
||||
foreach (uint k in SortedKeys(bag.Floats.Keys))
|
||||
{ p = Head(o, p, PropertyKind.Float, k); BinaryPrimitives.WriteInt64LittleEndian(o.Slice(p), BitConverter.DoubleToInt64Bits(bag.Floats[k])); p += 8; }
|
||||
foreach (var s in strings)
|
||||
{
|
||||
p = Head(o, p, PropertyKind.String, s.Key);
|
||||
BinaryPrimitives.WriteUInt16LittleEndian(o.Slice(p), (ushort)s.Bytes.Length); p += 2;
|
||||
s.Bytes.CopyTo(o.Slice(p)); p += s.Bytes.Length;
|
||||
}
|
||||
foreach (uint k in SortedKeys(bag.DataIds.Keys))
|
||||
{ p = Head(o, p, PropertyKind.DataId, k); BinaryPrimitives.WriteUInt32LittleEndian(o.Slice(p), bag.DataIds[k]); p += 4; }
|
||||
foreach (uint k in SortedKeys(bag.InstanceIds.Keys))
|
||||
{ p = Head(o, p, PropertyKind.InstanceId, k); BinaryPrimitives.WriteUInt32LittleEndian(o.Slice(p), bag.InstanceIds[k]); p += 4; }
|
||||
foreach (uint s in spellList)
|
||||
{ o[p++] = KindSpell; BinaryPrimitives.WriteUInt32LittleEndian(o.Slice(p), s); p += 4; }
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
private static int Head(Span<byte> o, int p, PropertyKind kind, uint key)
|
||||
{
|
||||
o[p] = (byte)kind;
|
||||
BinaryPrimitives.WriteUInt32LittleEndian(o.Slice(p + 1), key);
|
||||
return p + 5;
|
||||
}
|
||||
|
||||
private static List<uint> SortedKeys<T>(Dictionary<uint, T>.KeyCollection keys)
|
||||
{
|
||||
var list = new List<uint>(keys);
|
||||
list.Sort();
|
||||
return list;
|
||||
}
|
||||
|
||||
// UTF-8 of s, at most MaxStringBytes, never ending inside a character.
|
||||
private static byte[] Utf8Cut(string s)
|
||||
{
|
||||
byte[] b = Encoding.UTF8.GetBytes(s);
|
||||
if (b.Length <= MaxStringBytes) return b;
|
||||
int n = MaxStringBytes;
|
||||
while (n > 0 && (b[n] & 0xC0) == 0x80) n--; // b[n] starts the first character left out
|
||||
return b.AsSpan(0, n).ToArray();
|
||||
}
|
||||
}
|
||||
|
|
@ -145,6 +145,29 @@ internal static class PropertyUpdateHooks
|
|||
return _bags.TryGetValue(objectId, out PropertyBag? b) && b.InstanceIds.TryGetValue(stype, out value);
|
||||
}
|
||||
|
||||
/// <summary>v84 (GetObjectProperties): a copy of every public update the server sent for the object, or null. Any thread.</summary>
|
||||
internal static PropertyBag? CopyPublicUpdates(uint objectId)
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
if (!_bags.TryGetValue(objectId, out PropertyBag? b)) return null;
|
||||
var copy = new PropertyBag();
|
||||
copy.MergeFrom(b);
|
||||
return copy;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>v84 (GetObjectProperties): a copy of the player's own record (PlayerDescription + private updates). Any thread.</summary>
|
||||
internal static PropertyBag CopySelf()
|
||||
{
|
||||
lock (_lock)
|
||||
{
|
||||
var copy = new PropertyBag();
|
||||
copy.MergeFrom(_self);
|
||||
return copy;
|
||||
}
|
||||
}
|
||||
|
||||
// The player's own record (PlayerDescription + private updates).
|
||||
public static bool TryGetSelfInt(uint stype, out int value) { lock (_lock) return _self.Ints.TryGetValue(stype, out value); }
|
||||
public static bool TryGetSelfInt64(uint stype, out long value) { lock (_lock) return _self.Int64s.TryGetValue(stype, out value); }
|
||||
|
|
@ -196,6 +219,7 @@ internal static class PropertyUpdateHooks
|
|||
_selfDescribed = false;
|
||||
}
|
||||
ClientObjectHooks.ClearPlayerQualitiesSnapshot();
|
||||
ClientObjectHooks.ClearObjectQualities();
|
||||
}
|
||||
|
||||
// --- Wire entry points (AC's main thread, SmartBoxHooks.ParseGameEvent) ---
|
||||
|
|
|
|||
|
|
@ -573,6 +573,28 @@ internal static class PwdLayout
|
|||
_ => -1,
|
||||
};
|
||||
|
||||
/// <summary>v84: every property the CreateObject copy holds, for <see cref="FillBag"/>.</summary>
|
||||
public static readonly uint[] IntStypes = { 1, 4, 5, 6, 7, 9, 10, 11, 12, 16, 18, 19, 50, 51, 91, 92, 94, 95, 131, 133, 151, 152, 280 };
|
||||
public static readonly uint[] DataIdStypes = { 8, 28, 50, 52 };
|
||||
public static readonly uint[] InstanceIdStypes = { 2, 3, 26, 32, 44 };
|
||||
|
||||
/// <summary>
|
||||
/// v84 (GetObjectProperties): the CreateObject fields as properties, as the per-key readers
|
||||
/// answer them (a zero field answers nothing). Float 280 (the engine's workmanship read) is
|
||||
/// left out: it is no property id (workmanship is ItemWorkmanship, int 105, in the identify).
|
||||
/// </summary>
|
||||
public static void FillBag(ReadOnlySpan<byte> pwd, PropertyBag bag)
|
||||
{
|
||||
foreach (uint s in IntStypes)
|
||||
if (TryGetInt(pwd, s, out int v)) bag.Ints[s] = v;
|
||||
foreach (uint s in DataIdStypes)
|
||||
if (TryGetDataId(pwd, s, out uint d)) bag.DataIds[s] = d;
|
||||
foreach (uint s in InstanceIdStypes)
|
||||
if (TryGetInstanceId(pwd, s, out uint i)) bag.InstanceIds[s] = i;
|
||||
if (TryGetFloat(pwd, 54, out double r)) bag.Floats[54] = r;
|
||||
if (TryGetFloat(pwd, 167, out double c)) bag.Floats[167] = c;
|
||||
}
|
||||
|
||||
public static bool TryGetInt(ReadOnlySpan<byte> pwd, uint stype, out int value)
|
||||
{
|
||||
value = 0;
|
||||
|
|
|
|||
|
|
@ -329,6 +329,7 @@ internal static class EngineFrameController
|
|||
// Same main-thread guard: snapshot XP/luminance/deaths/vitae (main-thread-only
|
||||
// Inq* reads) so the GetEngineStatusJson host bridge can serve them off-thread (throttled).
|
||||
Compatibility.ClientObjectHooks.PrefetchPlayerStats();
|
||||
Compatibility.ClientObjectHooks.ServeObjectQualitiesRequest(); // v84 GetObjectProperties (none asked: one read)
|
||||
|
||||
// Cold-login object backfill on the SAME AC main thread as the
|
||||
// skill prefetch above: deliver objects already present at login
|
||||
|
|
@ -465,6 +466,7 @@ internal static class EngineFrameController
|
|||
Compatibility.ClientObjectHooks.PrefetchObjectIdentity();
|
||||
Compatibility.ClientObjectHooks.PrefetchPositions();
|
||||
Compatibility.ClientObjectHooks.PrefetchPlayerStats();
|
||||
Compatibility.ClientObjectHooks.ServeObjectQualitiesRequest(); // v84 GetObjectProperties (none asked: one read)
|
||||
try { Plugins.PluginManager.TrySeedLiveObjectsFromCObjectMaintOnce(); }
|
||||
catch (Exception ex) { RynthLog.Plugin($"CObjectMaint seed threw {ex.GetType().Name}: {ex.Message}"); }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -911,6 +911,17 @@ internal struct RynthCoreAPI
|
|||
/// it (checked again there). Returns 1 removed, 2 queued, 0 refused, -1 the client's
|
||||
/// DeleteObject isn't bound yet (no delete seen since the hook went in). Requires API v83+.</summary>
|
||||
public IntPtr RemoveClientObjectFn;
|
||||
|
||||
/// <summary>v84: <c>int GetObjectProperties(uint objectId, byte* buffer, int bufferSize)</c>: every
|
||||
/// property the engine knows for the object (int, int64, bool, float, string, data id, instance id
|
||||
/// and the spell book), merged from the client's CreateObject copy, its qualities tables (read on
|
||||
/// AC's main thread), the last identify and the server's property updates, as one record
|
||||
/// (Compatibility/ObjectPropertyRecord.cs; the SDK's ObjectProperties.TryParse reads it). Returns the
|
||||
/// record's size in bytes; it was copied only when that is <= bufferSize (call again with a buffer
|
||||
/// that big). 0 when the engine knows nothing about the object, -1 a zero id or a negative size.
|
||||
/// Off AC's main thread a walk of the object's qualities tables is requested for the next tick
|
||||
/// (flag QualitiesPending): ask again a moment later for the full set. Any thread. Requires API v84+.</summary>
|
||||
public IntPtr GetObjectPropertiesFn;
|
||||
}
|
||||
|
||||
/// <summary>v79 <see cref="TrainingInfoNative.Flags"/> bits.</summary>
|
||||
|
|
@ -1750,3 +1761,6 @@ internal delegate int GetObjectServerAgeCallbackDelegate(uint objectId);
|
|||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal delegate int RemoveClientObjectCallbackDelegate(uint objectId);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
internal unsafe delegate int GetObjectPropertiesCallbackDelegate(uint objectId, byte* buffer, int bufferSize);
|
||||
|
|
|
|||
|
|
@ -18,5 +18,6 @@ internal static class PluginContractVersion
|
|||
// v81: GetMergeStackResult (was v77 on QOL-items, then v80; renumbered after upstream's v77-v80).
|
||||
// v82: SalvageDirect (salvage without the salvage panel; was v81 on feature/salvage-direct).
|
||||
// v83: GetObjectServerAge and RemoveClientObject (ghost creatures, 2026-10-12).
|
||||
public const uint Current = 83;
|
||||
// v84: GetObjectProperties (every property of an object, for /ub propertydump; 2026-10-13).
|
||||
public const uint Current = 84;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -269,6 +269,7 @@ internal static partial class PluginManager
|
|||
private static SalvageDirectCallbackDelegate? _salvageDirectCallback; // v82
|
||||
private static GetObjectServerAgeCallbackDelegate? _getObjectServerAgeCallback; // v83
|
||||
private static RemoveClientObjectCallbackDelegate? _removeClientObjectCallback; // v83
|
||||
private static GetObjectPropertiesCallbackDelegate? _getObjectPropertiesCallback; // v84
|
||||
private static GetVendorInfoCallbackDelegate? _getVendorInfoCallback;
|
||||
private static GetVendorItemsCallbackDelegate? _getVendorItemsCallback;
|
||||
private static VendorBuyCallbackDelegate? _vendorBuyCallback;
|
||||
|
|
@ -3056,6 +3057,7 @@ internal static partial class PluginManager
|
|||
unsafe { _salvageDirectCallback ??= SalvageDirectAction; } // v82
|
||||
_getObjectServerAgeCallback ??= GetObjectServerAgeAction; // v83
|
||||
_removeClientObjectCallback ??= RemoveClientObjectAction; // v83
|
||||
unsafe { _getObjectPropertiesCallback ??= GetObjectPropertiesAction; } // v84
|
||||
_getVendorInfoCallback ??= GetVendorInfoAction;
|
||||
_getVendorItemsCallback ??= GetVendorItemsAction;
|
||||
_vendorBuyCallback ??= VendorBuyAction;
|
||||
|
|
@ -3205,6 +3207,7 @@ internal static partial class PluginManager
|
|||
_api.SalvageDirectFn = Marshal.GetFunctionPointerForDelegate(_salvageDirectCallback);
|
||||
_api.GetObjectServerAgeFn = Marshal.GetFunctionPointerForDelegate(_getObjectServerAgeCallback);
|
||||
_api.RemoveClientObjectFn = Marshal.GetFunctionPointerForDelegate(_removeClientObjectCallback);
|
||||
_api.GetObjectPropertiesFn = Marshal.GetFunctionPointerForDelegate(_getObjectPropertiesCallback);
|
||||
_api.GetVendorInfoFn = Marshal.GetFunctionPointerForDelegate(_getVendorInfoCallback);
|
||||
_api.GetVendorItemsFn = Marshal.GetFunctionPointerForDelegate(_getVendorItemsCallback);
|
||||
_api.VendorBuyFn = Marshal.GetFunctionPointerForDelegate(_vendorBuyCallback);
|
||||
|
|
@ -4393,6 +4396,27 @@ internal static partial class PluginManager
|
|||
}
|
||||
}
|
||||
|
||||
// ── v84: every property of an object (ObjectPropertyDump) ──
|
||||
|
||||
/// <summary>v84: see PluginContract.GetObjectPropertiesFn.</summary>
|
||||
private static unsafe int GetObjectPropertiesAction(uint objectId, byte* buffer, int bufferSize)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (objectId == 0 || bufferSize < 0 || (buffer == null && bufferSize > 0)) return -1;
|
||||
byte[]? rec = Compatibility.ObjectPropertyDump.Collect(objectId);
|
||||
if (rec == null) return 0;
|
||||
if (rec.Length <= bufferSize)
|
||||
rec.AsSpan().CopyTo(new Span<byte>(buffer, bufferSize));
|
||||
return rec.Length;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
RynthLog.Compat($"GetObjectProperties 0x{objectId:X8} failed - {ex.GetType().Name}: {ex.Message}");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
// ── v83: ghost creatures (ObjectFreshness, DeleteObjectHooks.RemoveClientObject) ──
|
||||
|
||||
/// <summary>v83: see PluginContract.GetObjectServerAgeFn.</summary>
|
||||
|
|
|
|||
125
src/RynthCore.PluginSdk/ObjectPropertyTypes.cs
Normal file
125
src/RynthCore.PluginSdk/ObjectPropertyTypes.cs
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
using System;
|
||||
using System.Buffers.Binary;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace RynthCore.PluginSdk;
|
||||
|
||||
// ─── Every property of an object (engine API v84) ──────────────────────────
|
||||
// RynthCoreHost.TryGetObjectProperties returns all the keys the engine holds for one object
|
||||
// (what UtilityBelt's propertydump lists from Decal's WorldObject), not one key at a time:
|
||||
//
|
||||
// if (Host.TryGetObjectProperties(id, out ObjectProperties p))
|
||||
// foreach (var kv in p.Ints) Log($"{kv.Key} = {kv.Value}");
|
||||
//
|
||||
// Item properties beyond the CreateObject basics only exist after an identify (RequestId):
|
||||
// check p.HasIdData. Asked off AC's main thread, the client's own qualities tables are read at
|
||||
// the next main-thread tick: when p.QualitiesPending is set, ask again ~0.2 s later.
|
||||
|
||||
/// <summary>What <see cref="ObjectProperties"/> was built from (the engine's record flags).</summary>
|
||||
[Flags]
|
||||
public enum ObjectPropertyFlags : ushort
|
||||
{
|
||||
None = 0,
|
||||
/// <summary>The server answered an identify (appraisal) for the object this session.</summary>
|
||||
HasIdData = 0x0001,
|
||||
/// <summary>The client's own qualities tables of the object were read in.</summary>
|
||||
QualitiesRead = 0x0002,
|
||||
/// <summary>A read of the client's qualities tables was requested for AC's next main-thread tick: ask again shortly.</summary>
|
||||
QualitiesPending = 0x0004,
|
||||
/// <summary>The object is the player's character.</summary>
|
||||
IsPlayer = 0x0008,
|
||||
/// <summary>The client's CreateObject copy of the object was read in.</summary>
|
||||
HasCreateData = 0x0010,
|
||||
}
|
||||
|
||||
/// <summary>Every property of one object, a dictionary per AC property type (keys are the AC/ACE property ids).</summary>
|
||||
public sealed class ObjectProperties
|
||||
{
|
||||
public const uint RecordMagic = 0x31445052; // "RPD1"
|
||||
public const ushort RecordVersion = 1;
|
||||
private const int HeaderSize = 20;
|
||||
private const byte KindInt = 0, KindInt64 = 1, KindBool = 2, KindFloat = 3, KindString = 4,
|
||||
KindDataId = 5, KindInstanceId = 6, KindSpell = 7;
|
||||
|
||||
public ObjectPropertyFlags Flags { get; private set; }
|
||||
/// <summary>Unix seconds of the last identify answer; 0 never.</summary>
|
||||
public long LastIdTime { get; private set; }
|
||||
|
||||
public bool HasIdData => (Flags & ObjectPropertyFlags.HasIdData) != 0;
|
||||
public bool QualitiesPending => (Flags & ObjectPropertyFlags.QualitiesPending) != 0;
|
||||
public bool IsPlayer => (Flags & ObjectPropertyFlags.IsPlayer) != 0;
|
||||
|
||||
public Dictionary<uint, int> Ints { get; } = new();
|
||||
public Dictionary<uint, long> Int64s { get; } = new();
|
||||
public Dictionary<uint, bool> Bools { get; } = new();
|
||||
public Dictionary<uint, double> Floats { get; } = new();
|
||||
public Dictionary<uint, string> Strings { get; } = new();
|
||||
/// <summary>Data ids (STypeDID: icons, setups, spell, ...).</summary>
|
||||
public Dictionary<uint, uint> DataIds { get; } = new();
|
||||
/// <summary>Instance ids (STypeIID: container, wielder, owner, monarch, ...).</summary>
|
||||
public Dictionary<uint, uint> InstanceIds { get; } = new();
|
||||
/// <summary>The spell book from the last identify, in its order.</summary>
|
||||
public List<uint> Spells { get; } = new();
|
||||
|
||||
public int Count => Ints.Count + Int64s.Count + Bools.Count + Floats.Count + Strings.Count
|
||||
+ DataIds.Count + InstanceIds.Count + Spells.Count;
|
||||
|
||||
/// <summary>
|
||||
/// Reads the engine's v84 record. False (and <paramref name="props"/> null) when it isn't
|
||||
/// one: wrong magic, a newer format, or an entry that runs past the end.
|
||||
/// </summary>
|
||||
public static bool TryParse(ReadOnlySpan<byte> rec, out ObjectProperties? props)
|
||||
{
|
||||
props = null;
|
||||
if (rec.Length < HeaderSize || BinaryPrimitives.ReadUInt32LittleEndian(rec) != RecordMagic)
|
||||
return false;
|
||||
if (BinaryPrimitives.ReadUInt16LittleEndian(rec.Slice(4)) != RecordVersion)
|
||||
return false;
|
||||
var p = new ObjectProperties
|
||||
{
|
||||
Flags = (ObjectPropertyFlags)BinaryPrimitives.ReadUInt16LittleEndian(rec.Slice(6)),
|
||||
LastIdTime = BinaryPrimitives.ReadInt64LittleEndian(rec.Slice(8)),
|
||||
};
|
||||
uint count = BinaryPrimitives.ReadUInt32LittleEndian(rec.Slice(16));
|
||||
int o = HeaderSize;
|
||||
for (uint i = 0; i < count; i++)
|
||||
{
|
||||
if (o + 5 > rec.Length) return false;
|
||||
byte kind = rec[o];
|
||||
uint key = BinaryPrimitives.ReadUInt32LittleEndian(rec.Slice(o + 1));
|
||||
o += 5;
|
||||
int need = kind switch
|
||||
{
|
||||
KindInt or KindDataId or KindInstanceId => 4,
|
||||
KindInt64 or KindFloat => 8,
|
||||
KindBool => 1,
|
||||
KindString => 2,
|
||||
KindSpell => 0,
|
||||
_ => -1,
|
||||
};
|
||||
if (need < 0 || o + need > rec.Length) return false;
|
||||
switch (kind)
|
||||
{
|
||||
case KindInt: p.Ints[key] = BinaryPrimitives.ReadInt32LittleEndian(rec.Slice(o)); break;
|
||||
case KindInt64: p.Int64s[key] = BinaryPrimitives.ReadInt64LittleEndian(rec.Slice(o)); break;
|
||||
case KindBool: p.Bools[key] = rec[o] != 0; break;
|
||||
case KindFloat: p.Floats[key] = BitConverter.Int64BitsToDouble(BinaryPrimitives.ReadInt64LittleEndian(rec.Slice(o))); break;
|
||||
case KindDataId: p.DataIds[key] = BinaryPrimitives.ReadUInt32LittleEndian(rec.Slice(o)); break;
|
||||
case KindInstanceId: p.InstanceIds[key] = BinaryPrimitives.ReadUInt32LittleEndian(rec.Slice(o)); break;
|
||||
case KindSpell: p.Spells.Add(key); break;
|
||||
case KindString:
|
||||
{
|
||||
int len = BinaryPrimitives.ReadUInt16LittleEndian(rec.Slice(o));
|
||||
if (o + 2 + len > rec.Length) return false;
|
||||
p.Strings[key] = Encoding.UTF8.GetString(rec.Slice(o + 2, len));
|
||||
o += 2 + len;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
o += need;
|
||||
}
|
||||
props = p;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -172,6 +172,8 @@ public struct RynthCoreApiNative
|
|||
// v83: ghost creatures (objects the client draws but the server no longer has for this player)
|
||||
public IntPtr GetObjectServerAgeFn; // int GetObjectServerAge(uint id) -> ms since the server's last message about it, -1 none
|
||||
public IntPtr RemoveClientObjectFn; // int RemoveClientObject(uint id) -> 1 removed, 2 queued, 0 refused, -1 unbound
|
||||
// v84: every property of an object (/ub propertydump), one record (ObjectProperties.TryParse)
|
||||
public IntPtr GetObjectPropertiesFn; // int GetObjectProperties(uint id, byte* buf, int size) -> record size (copied if <= size), 0 unknown, -1 bad args
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -176,6 +176,9 @@ public readonly unsafe struct RynthCoreHost
|
|||
|
||||
/// <summary>v83: <see cref="RemoveClientObject"/> (drop a ghost creature from the client).</summary>
|
||||
public bool HasRemoveClientObject => _api.Version >= 83 && _api.RemoveClientObjectFn != IntPtr.Zero;
|
||||
|
||||
/// <summary>v84: <see cref="TryGetObjectProperties"/> (every property of an object at once).</summary>
|
||||
public bool HasGetObjectProperties => _api.Version >= 84 && _api.GetObjectPropertiesFn != IntPtr.Zero;
|
||||
public bool HasGetPluginExportJson => _api.Version >= 66 && _api.GetPluginExportJsonFn != IntPtr.Zero;
|
||||
// Version-checked first: on an older engine the field lies past the end of its API table.
|
||||
public bool HasGetMergeStackResult => _api.Version >= 81 && _api.GetMergeStackResultFn != IntPtr.Zero;
|
||||
|
|
@ -1919,6 +1922,37 @@ public readonly unsafe struct RynthCoreHost
|
|||
? ((delegate* unmanaged[Cdecl]<uint, int>)_api.RemoveClientObjectFn)(objectId)
|
||||
: -2;
|
||||
|
||||
// ─── Every property of an object (API v84) ─────────────────────────────
|
||||
|
||||
/// <summary>
|
||||
/// v84: every property the engine knows for <paramref name="objectId"/> (int, int64, bool,
|
||||
/// float, string, data id, instance id and the spell book), merged from the client's
|
||||
/// CreateObject copy, its qualities tables, the last identify and the server's property
|
||||
/// updates, the way the per-key reads (TryGetObjectIntProperty, ...) answer. False on an
|
||||
/// engine before v84 (fall back to per-key reads) or when the engine knows nothing about
|
||||
/// the object. Item details need an identify first (<see cref="RequestId"/>, then
|
||||
/// <see cref="ObjectProperties.HasIdData"/>). When <see cref="ObjectProperties.QualitiesPending"/>
|
||||
/// is set, the client's qualities tables are read at AC's next main-thread tick: ask again
|
||||
/// shortly. Any thread.
|
||||
/// </summary>
|
||||
public bool TryGetObjectProperties(uint objectId, out ObjectProperties? properties)
|
||||
{
|
||||
properties = null;
|
||||
if (!HasGetObjectProperties || objectId == 0) return false;
|
||||
var fn = (delegate* unmanaged[Cdecl]<uint, byte*, int, int>)_api.GetObjectPropertiesFn;
|
||||
byte[] buffer = new byte[8192];
|
||||
for (int attempt = 0; attempt < 4; attempt++)
|
||||
{
|
||||
int n;
|
||||
fixed (byte* p = buffer) n = fn(objectId, p, buffer.Length);
|
||||
if (n <= 0) return false;
|
||||
if (n <= buffer.Length)
|
||||
return ObjectProperties.TryParse(new ReadOnlySpan<byte>(buffer, 0, n), out properties);
|
||||
buffer = new byte[Math.Max(n + 1024, buffer.Length * 2)]; // grew between calls: some room
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int SalvageDirect(uint toolId, ReadOnlySpan<uint> itemIds)
|
||||
{
|
||||
if (!HasSalvageDirect) return -2;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<!-- The engine API this SDK knows; tools\PluginManifestTests checks it equals PluginContractVersion.Current. -->
|
||||
<RynthCoreSdkApiVersion>83</RynthCoreSdkApiVersion>
|
||||
<RynthCoreSdkApiVersion>84</RynthCoreSdkApiVersion>
|
||||
<_RynthPluginManifestOn Condition="'$(RynthPluginMinEngineApi)' != '' and '$(RynthPluginManifest)' != 'false'">true</_RynthPluginManifestOn>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue