modstructure.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. class ModStructure
  2. {
  3. protected int m_ModIndex;
  4. protected string m_ModPath;
  5. protected string m_ModName;
  6. protected string m_ModLogo;
  7. protected string m_ModLogoSmall;
  8. protected string m_ModLogoOver;
  9. protected string m_ModActionURL;
  10. protected string m_ModTooltip;
  11. protected string m_ModOverview;
  12. void ModStructure( int index, string path )
  13. {
  14. m_ModIndex = index;
  15. m_ModPath = path;
  16. LoadData();
  17. }
  18. void LoadData()
  19. {
  20. if( GetGame().ConfigIsExisting( m_ModPath ) )
  21. {
  22. GetGame().ConfigGetText( m_ModPath + " name", m_ModName );
  23. GetGame().ConfigGetText( m_ModPath + " picture", m_ModLogo );
  24. GetGame().ConfigGetText( m_ModPath + " logo", m_ModLogoSmall );
  25. GetGame().ConfigGetText( m_ModPath + " logoSmall", m_ModLogoOver );
  26. GetGame().ConfigGetText( m_ModPath + " logoOver", m_ModActionURL );
  27. GetGame().ConfigGetText( m_ModPath + " tooltip", m_ModTooltip );
  28. GetGame().ConfigGetText( m_ModPath + " overview", m_ModOverview );
  29. }
  30. }
  31. string GetModName()
  32. {
  33. return m_ModName;
  34. }
  35. string GetModLogo()
  36. {
  37. return m_ModName;
  38. }
  39. string GetModLogoSmall()
  40. {
  41. return m_ModName;
  42. }
  43. string GetModLogoOver()
  44. {
  45. return m_ModName;
  46. }
  47. string GetModActionURL()
  48. {
  49. return m_ModName;
  50. }
  51. string GetModToltip()
  52. {
  53. return m_ModName;
  54. }
  55. string GetModOverview()
  56. {
  57. return m_ModName;
  58. }
  59. }