home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Inne / Gry / Enigma / Enigma-1.01-w7.exe / data / editor.lua < prev    next >
Text File  |  2009-12-13  |  2KB  |  74 lines

  1.  
  2. function FloorGroup (l)
  3.     local list = l.list or {l.name}
  4.     editor.DefineFloorGroup(l.name, l.descr, getn(list), list)
  5. end
  6.  
  7. function Floors (l)
  8.     for i=1,getn(l) do
  9.         FloorGroup {["name"]=l[i], descr=""}
  10.     end
  11. end
  12.  
  13. function ItemGroup (l)
  14.     local list = l.list or {l.name}
  15.     editor.DefineItemGroup(l.name, l.descr, getn(list), list)
  16. end
  17.  
  18. function Items (l)
  19.     for i=1,getn(l) do
  20.         ItemGroup {["name"]=l[i], descr=""}
  21.     end
  22. end
  23.  
  24.  
  25. function StoneGroup (l)
  26.     local list = l.list or {l.name}
  27.     editor.DefineStoneGroup(l.name, l.descr, getn(list), list)
  28. end
  29.  
  30. function Stone(name, descr) StoneGroup{["name"]=name, ["descr"]=descr} end
  31.  
  32. ----------------------------------------------------------------------
  33. -- FLOORS
  34. ----------------------------------------------------------------------
  35. Floors {"fl-normal", "fl-leaves", "fl-sand"}
  36.  
  37. ----------------------------------------------------------------------
  38. -- ITEMS
  39. ----------------------------------------------------------------------
  40. Items{"it-brush", "it-brake", "it-cherry", "it-hammer", 
  41.     "it-umbrella", "it-dynamite", "it-blackbomb", "it-whitebomb"}
  42. ItemGroup {name="", 
  43.     descr="Hills and Hollows", 
  44.     list={"it-hill", "it-tinyhill", "it-hollow", "it-tinyhollow"}}
  45. ItemGroup {name="it-shogun",
  46.     descr="Shogun Dots",
  47.     list={"it-shogun1", "it-shogun2", "it-shogun3"}}
  48.  
  49. ----------------------------------------------------------------------
  50. -- STONES
  51. ----------------------------------------------------------------------
  52.  
  53. StoneGroup {
  54.     name="st-laser", 
  55.     descr="Lasers", 
  56.     list={"st-laser-n", "st-laser-e", "st-laser-s", "st-laser-w"}}
  57. StoneGroup {
  58.     name="st-disco",
  59.     descr="Disco Stones",
  60.     list={"st-disco-light", "st-disco-medium", "st-disco-dark"}}
  61. StoneGroup {
  62.     name="st-death",
  63.     descr="Skull Stones (normal/invisible)",
  64.     list={"st-death", "st-death-invisible"}}
  65. Stone ("st-floppy0", "Floppy Switch")
  66. StoneGroup {
  67.     name = "st-shogun",
  68.     descr = "Shogun Stones",
  69.     list = {"st-shogun1", "st-shogun2","st-shogun4","st-shogun3","st-shogun5","st-shogun6","st-shogun7"}}
  70. --     list={"st-shogun-s", "st-shogun-m", "st-shogun-l", 
  71. --         "st-shogun-sm", "st-shogun-sl", "st-shogun-ml", 
  72. --         "st-shogun-sml"}}
  73. Stone("st-brownie", "Simple Stone")
  74.