Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

45 行
2.0KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core;
  5. use core;
  6. package resource is
  7. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. type enumeration is (
  9. gold, wood, stone, metal, leather, gem
  10. );
  11. ------------------------------------------------------------------------------------------
  12. type definition is record
  13. base : core.point;
  14. name : core.unstring;
  15. text : core.unstring;
  16. end record;
  17. type points is array (enumeration) of core.point;
  18. type price is array (enumeration) of natural;
  19. ------------------------------------------------------------------------------------------
  20. count : constant natural := enumeration'pos (enumeration'last) + 1;
  21. description : constant array (enumeration) of definition := (
  22. gold => ((24, 480), +("Gold"), +("Gold is precious yellowish shiny metal, valued since ancient times.")),
  23. wood => ((12, 240), +("Wood"), +("Wood is just bundle of lignin and cellulose, nothing more.")),
  24. stone => ((12, 240), +("Stone"), +("Stone is essential building block for most constructions in this world.")),
  25. metal => ((12, 240), +("Metal"), +("Metal as a resource is mixture of commonly found metalic elements.")),
  26. leather => ((12, 240), +("Leather"), +("Leather is general purpose resource, used for armours and decorations.")),
  27. gem => ((12, 240), +("Gem"), +("Gem as a resource is same as metal, just mixture of various gems."))
  28. );
  29. icon : array (enumeration) of core.sprite;
  30. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  31. end resource;