SteamworksStatData.cs 841 B

12345678910111213141516171819202122232425
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. namespace KairoEngine.SteamIntegration
  6. {
  7. [System.Serializable]
  8. public class SteamworksStatData
  9. {
  10. [HorizontalGroup("line", 0.35f), HideLabel] public string name;
  11. [HorizontalGroup("line", 0.35f), HideLabel] public string statName;
  12. [HorizontalGroup("line", 0.3f), HideLabel] public SteamStatType statType = SteamStatType.Integer;
  13. // [HorizontalGroup("line", 0.2f), HideLabel, ShowIf("@statType == SteamStatType.Integer"), ReadOnly] public int integerValue = 0;
  14. // [HorizontalGroup("line", 0.2f), HideLabel, ShowIf("@statType == SteamStatType.Float"), ReadOnly] public float floatValue = 0f;
  15. }
  16. public enum SteamStatType
  17. {
  18. Integer,
  19. Float
  20. }
  21. }