internal static void RegisterType(Type t) { g_types.Add(t); g_on_transform_user_data = OnTransformUserData; g_on_archive = OnArchiveUserData; g_on_read_write = OnReadWriteUserData; g_on_duplicate = OnDuplcateUserData; g_on_create = OnCreateInstance; g_on_delete = OnDelete; UnsafeNativeMethods.CRhCmnUserData_SetCallbacks(g_on_transform_user_data, g_on_archive, g_on_read_write, g_on_duplicate, g_on_create, g_on_delete); }
internal static void RegisterType(Type t) { m_types.Add(t); m_OnTransformUserData = OnTransformUserData; m_OnArchive = OnArchiveUserData; m_OnReadWrite = OnReadWriteUserData; m_OnDuplicate = OnDuplcateUserData; m_OnCreate = OnCreateInstance; m_OnDelete = OnDelete; UnsafeNativeMethods.CRhCmnUserData_SetCallbacks(m_OnTransformUserData, m_OnArchive, m_OnReadWrite, m_OnDuplicate, m_OnCreate, m_OnDelete); }