UnsetInstanceClassEx
be an instance of this class anymore, if there are no classes left it automatically becomes an instance of Thing.
In case the instance dependency on classes has changed this function will return the instance given as input.
This call has the same behavior as UnsetInstanceClass, however needs to be
used in case instance or class are exchanged as a successive series of integers.
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "UnsetInstanceClassEx")] public static extern Int64 x86_UnsetInstanceClassEx(Int64 model, Int64 owlInstance, Int64 owlClass); [DllImport(enginedll, EntryPoint = "UnsetInstanceClassEx")] public static extern Int64 x64_UnsetInstanceClassEx(Int64 model, Int64 owlInstance, Int64 owlClass); public static Int64 UnsetInstanceClassEx(Int64 model, Int64 owlInstance, Int64 owlClass) { if (IntPtr.Size == 4) { var _result = x86_UnsetInstanceClassEx(model, owlInstance, owlClass); return _result; } else { return x64_UnsetInstanceClassEx(model, owlInstance, owlClass); } }