No Description
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.

GenericEditorGameServiceEvent.cs 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. namespace UnityEditor.Purchasing
  3. {
  4. internal class GenericEditorGameServiceEvent : IEditorAnalyticsEvent
  5. {
  6. readonly string m_Component;
  7. readonly string m_Action;
  8. internal GenericEditorGameServiceEvent(string component, string action)
  9. {
  10. m_Component = component;
  11. m_Action = action;
  12. }
  13. public EditorAnalyticsDataSignature GetSignature()
  14. {
  15. return SignatureDefinitions.k_GenericEditorSignature;
  16. }
  17. [Serializable]
  18. public struct GenericEditorGameServiceEventParams
  19. {
  20. //Important: These param names come from the DevEx core. Do not change/add/remove them until this event changes version
  21. public string action;
  22. public string component;
  23. public string package;
  24. }
  25. public object CreateEventParams(string platformName, string packageKey)
  26. {
  27. return new GenericEditorGameServiceEventParams
  28. {
  29. action = m_Action,
  30. component = m_Component,
  31. package = packageKey
  32. };
  33. }
  34. }
  35. }