internal static Subsystem FindDeprecatedSubsystemByDescriptor(SubsystemDescriptor descriptor) { foreach (var subsystem in s_DeprecatedSubsystems) { if (subsystem.m_SubsystemDescriptor == descriptor) { return(subsystem); } } return(null); }
internal static bool Internal_AddDescriptor(SubsystemDescriptor descriptor) { foreach (var standaloneDescriptor in s_StandaloneSubsystemDescriptors) { if (standaloneDescriptor == descriptor) { return(false); } } s_StandaloneSubsystemDescriptors.Add(descriptor); SubsystemManager.ReportSingleSubsystemAnalytics(descriptor.id); return(true); }
/// <summary> /// Registers a <c>SubsystemDescriptor</c> with the Subsystem Manager so that features and implementation type are available. /// </summary> /// <param name="descriptor"> The <c>SubsystemDescriptor</c> that describes the subsystem implementation.</param> /// <returns><c>True</c> if the descriptor does not already exist and registration happens, otherwise, <c>False</c>.</returns> public static bool CreateDescriptor(SubsystemDescriptor descriptor) { foreach (var declaration in k_SubsystemDescriptors) { if (descriptor.subsystemImplementationType == declaration.subsystemImplementationType) { return(false); } } Internal_SubsystemDescriptors.Internal_AddDescriptor(descriptor); k_SubsystemDescriptors.Add(descriptor); return(true); }
internal static Subsystem FindDeprecatedSubsystemByDescriptor(SubsystemDescriptor descriptor) { Subsystem result; foreach (Subsystem current in SubsystemManager.s_DeprecatedSubsystems) { bool flag = current.m_SubsystemDescriptor == descriptor; if (flag) { result = current; return(result); } } result = null; return(result); }
internal static Subsystem Internal_FindStandaloneSubsystemInstanceGivenDescriptor(SubsystemDescriptor descriptor) { foreach (Subsystem subsystemInstance in s_StandaloneSubsystemInstances) { if (subsystemInstance.m_subsystemDescriptor == descriptor) { return(subsystemInstance); } } return(null); }
internal static void Internal_AddDescriptor(SubsystemDescriptor descriptor) => SubsystemDescriptorStore.RegisterDeprecatedDescriptor(descriptor);
[RequiredByNativeCode] // 0x00000001800D4E50-0x00000001800D4E60 internal static bool Internal_AddDescriptor(SubsystemDescriptor descriptor) => default; // 0x0000000180AF6630-0x0000000180AF6880