Brak opisu
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.

StandaloneSubsystemDescriptor.cs 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. namespace UnityEngine.AdaptivePerformance.Tests.Standalone
  2. {
  3. namespace Providing
  4. {
  5. public class StandaloneSubsystemParams
  6. {
  7. public string id { get; set;}
  8. public System.Type subsystemImplementationType { get; set; }
  9. public StandaloneSubsystemParams(string id, System.Type subsystemImplType)
  10. {
  11. this.id = id;
  12. this.subsystemImplementationType = subsystemImplType;
  13. }
  14. }
  15. }
  16. #pragma warning disable CS0618
  17. public class StandaloneSubsystemDescriptor : SubsystemDescriptor<StandaloneSubsystem>
  18. {
  19. public static void Create(Providing.StandaloneSubsystemParams parms)
  20. {
  21. SubsystemRegistration.CreateDescriptor(new StandaloneSubsystemDescriptor(parms.id, parms.subsystemImplementationType));
  22. }
  23. public StandaloneSubsystemDescriptor(string id, System.Type subsystemImplType)
  24. {
  25. this.id = id;
  26. this.subsystemImplementationType = subsystemImplType;
  27. }
  28. }
  29. #pragma warning restore CS0618
  30. }