MMRScriptEventCode.cs 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSimulator Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. namespace OpenSim.Region.ScriptEngine.Yengine
  28. {
  29. /**
  30. * @brief List of event codes that can be passed to StartEventHandler().
  31. * Must have same name as corresponding event handler name, so
  32. * the compiler will know what column in the seht to put the
  33. * event handler entrypoint in.
  34. *
  35. * Also, ScriptConst.Init() builds symbols of name XMREVENTCODE_<name>
  36. * and XMREVENTMASK<n>_<name> with the values and masks of all symbols
  37. * in range 0..63 that begin with a lower-case letter for scripts to
  38. * reference.
  39. */
  40. public enum ScriptEventCode: int
  41. {
  42. // used by XMRInstance to indicate no event being processed
  43. None = -1,
  44. // must be bit numbers of equivalent values in ...
  45. // OpenSim.Region.ScriptEngine.Shared.ScriptBase.scriptEvents
  46. // ... so they can be passed to m_Part.SetScriptEvents().
  47. attach = 0,
  48. state_exit = 1,
  49. timer = 2,
  50. touch = 3,
  51. collision = 4,
  52. collision_end = 5,
  53. collision_start = 6,
  54. control = 7,
  55. dataserver = 8,
  56. email = 9,
  57. http_response = 10,
  58. land_collision = 11,
  59. land_collision_end = 12,
  60. land_collision_start = 13,
  61. at_target = 14,
  62. listen = 15,
  63. money = 16,
  64. moving_end = 17,
  65. moving_start = 18,
  66. not_at_rot_target = 19,
  67. not_at_target = 20,
  68. touch_start = 21,
  69. object_rez = 22,
  70. remote_data = 23,
  71. at_rot_target = 24,
  72. transaction_result = 25,
  73. run_time_permissions = 28,
  74. touch_end = 29,
  75. state_entry = 30,
  76. // events not passed to m_Part.SetScriptEvents().
  77. changed = 33,
  78. link_message = 34,
  79. no_sensor = 35,
  80. on_rez = 36,
  81. sensor = 37,
  82. http_request = 38,
  83. path_update = 40,
  84. // marks highest numbered event, ie, number of columns in seht.
  85. Size = 41
  86. }
  87. }