SteamworksStatData.cs 764 B

123456789101112131415161718192021222324
  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.7f), HideLabel] public string name;
  11. [HorizontalGroup("line", 0.3f), HideLabel] public SteamStatType statType = SteamStatType.Integer;
  12. // [HorizontalGroup("line", 0.2f), HideLabel, ShowIf("@statType == SteamStatType.Integer"), ReadOnly] public int integerValue = 0;
  13. // [HorizontalGroup("line", 0.2f), HideLabel, ShowIf("@statType == SteamStatType.Float"), ReadOnly] public float floatValue = 0f;
  14. }
  15. public enum SteamStatType
  16. {
  17. Integer,
  18. Float
  19. }
  20. }