EncyclopediaArticle.cs 936 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using Sirenix.OdinInspector;
  6. namespace KairoEngine.UI.Encyclopedia
  7. {
  8. [System.Serializable]
  9. public class EncyclopediaArticle
  10. {
  11. public string id;
  12. public string title;
  13. public string description;
  14. public Sprite icon;
  15. public bool unlocked = true;
  16. public Dictionary<string,string> content = new Dictionary<string, string>();
  17. public Dictionary<string,Sprite> images = new Dictionary<string, Sprite>();
  18. public Dictionary<string,int> integers = new Dictionary<string, int>();
  19. public Dictionary<string, float> floats = new Dictionary<string, float>();
  20. public Dictionary<string, bool> booleans = new Dictionary<string, bool>();
  21. public Dictionary<string, Func<EncyclopediaArticle>> functions = new Dictionary<string, Func<EncyclopediaArticle>>();
  22. }
  23. }