SW 중심대학 OSS GIT 서버
박건태, 이승준, 고기완, 이준호
새로운 배포
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System.Collections.Generic;
#if !UNITY_2019_2_OR_NEWER
using UnityEngine.Experimental;#endif
namespace UnityEngine{ public static class SubsystemRegistration { static readonly List<SubsystemDescriptor> k_SubsystemDescriptors = new List<SubsystemDescriptor>();
/// <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; } } }
|