Guest User

Spring AIInfo.lua

a guest
Aug 17th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.46 KB | None | 0 0
  1. --
  2. --  Info Definition Table format
  3. --
  4. --
  5. --  These keywords must be lowercase for LuaParser to read them.
  6. --
  7. --  key:      user defined or one of the SKIRMISH_AI_PROPERTY_* defines in
  8. --            SSkirmishAILibrary.h
  9. --  value:    the value of the property
  10. --  desc:     the description (could be used as a tooltip)
  11. --
  12. --
  13. --------------------------------------------------------------------------------
  14. --------------------------------------------------------------------------------
  15.  
  16. local infos = {
  17.     {
  18.         key    = 'shortName',
  19.         value  = 'SimpleAI',
  20.         desc   = 'machine conform name.',
  21.     },
  22.     {
  23.         key    = 'version',
  24.         value  = '0.1', -- AI version - !This comment is used for parsing!
  25.     },
  26.     {
  27.         key    = 'className',
  28.         value  = 'com.springrts.ai.simpleai.SimpleAI',
  29.         desc   = 'fully qualified name of a class that implements interface com.springrts.ai.AI',
  30.     },
  31.     {
  32.         key    = 'name',
  33.         value  = 'A Simple AI',
  34.         desc   = 'human readable name.',
  35.     },
  36.     {
  37.         key    = 'loadSupported',
  38.         value  = 'no',
  39.         desc   = 'whether this AI supports loading or not',
  40.     },
  41.     {
  42.         key    = 'interfaceShortName',
  43.         value  = 'Java', -- AI Interface name - !This comment is used for parsing!
  44.         desc   = 'the shortName of the AI interface this AI needs',
  45.     },
  46.     {
  47.         key    = 'interfaceVersion',
  48.         value  = '0.1', -- AI Interface version - !This comment is used for parsing!
  49.         desc   = 'the minimum version of the AI interface required by this AI',
  50.     },
  51. }
  52.  
  53. return infos
Advertisement
Add Comment
Please, Sign In to add comment