From 19656dd31a63c221feb42492dd9cff94dfbe494b Mon Sep 17 00:00:00 2001 From: aga Date: Sun, 23 Nov 2025 20:33:26 +0200 Subject: [PATCH] Add ChangeSubclass method to CBaseModelEntity Introduces the ChangeSubclass method to both the CBaseModelEntity interface and its implementation. This method allows changing the subclass by accepting an item definition index. --- .../Modules/Schemas/Extensions/CBaseModelEntityImpl.cs | 5 +++++ .../Schemas/Interfaces/CBaseModelEntity.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntityImpl.cs b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntityImpl.cs index 75270daee..ea30f92e4 100644 --- a/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntityImpl.cs +++ b/managed/src/SwiftlyS2.Core/Modules/Schemas/Extensions/CBaseModelEntityImpl.cs @@ -24,4 +24,9 @@ public void SetScale(float scale) AcceptInput("SetScale", scale); CBodyComponentUpdated(); } + + public void ChangeSubclass(ushort itemDefinitionIndex) + { + AcceptInput("ChangeSubclass", itemDefinitionIndex.ToString()); + } } \ No newline at end of file diff --git a/managed/src/SwiftlyS2.Generated/Schemas/Interfaces/CBaseModelEntity.cs b/managed/src/SwiftlyS2.Generated/Schemas/Interfaces/CBaseModelEntity.cs index b3f15ef5b..a7edb9be0 100644 --- a/managed/src/SwiftlyS2.Generated/Schemas/Interfaces/CBaseModelEntity.cs +++ b/managed/src/SwiftlyS2.Generated/Schemas/Interfaces/CBaseModelEntity.cs @@ -122,4 +122,5 @@ public partial interface CBaseModelEntity : CBaseEntity, ISchemaClass