1
0

MMRScriptEventCode.cs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. attach = 0,
  45. state_exit = 1,
  46. timer = 2,
  47. touch = 3,
  48. collision = 4,
  49. collision_end = 5,
  50. collision_start = 6,
  51. control = 7,
  52. dataserver = 8,
  53. email = 9,
  54. http_response = 10,
  55. land_collision = 11,
  56. land_collision_end = 12,
  57. land_collision_start = 13,
  58. at_target = 14,
  59. listen = 15,
  60. money = 16,
  61. moving_end = 17,
  62. moving_start = 18,
  63. not_at_rot_target = 19,
  64. not_at_target = 20,
  65. touch_start = 21,
  66. object_rez = 22,
  67. remote_data = 23,
  68. at_rot_target = 24,
  69. transaction_result = 25,
  70. run_time_permissions = 28,
  71. touch_end = 29,
  72. state_entry = 30,
  73. //
  74. //
  75. changed = 33,
  76. link_message = 34,
  77. no_sensor = 35,
  78. on_rez = 36,
  79. sensor = 37,
  80. http_request = 38,
  81. //
  82. path_update = 40,
  83. linkset_data = 41,
  84. // marks highest numbered event
  85. Size = 42
  86. }
  87. }