mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
let scriptEvents flags represent all events we have (so change to 64bit ulong) not the need to keep duplicated definitions on main framework and each script engine, namely because Xengine app domain option
This commit is contained in:
@@ -46,40 +46,107 @@ using OpenSim.Services.Interfaces;
|
||||
|
||||
namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
// this is not the right place for this
|
||||
// for now it must match similar enums duplicated on scritp engines
|
||||
public enum ScriptEventCode : int
|
||||
{
|
||||
None = -1,
|
||||
|
||||
attach = 0,
|
||||
state_exit = 1,
|
||||
timer = 2,
|
||||
touch = 3,
|
||||
collision = 4,
|
||||
collision_end = 5,
|
||||
collision_start = 6,
|
||||
control = 7,
|
||||
dataserver = 8,
|
||||
email = 9,
|
||||
http_response = 10,
|
||||
land_collision = 11,
|
||||
land_collision_end = 12,
|
||||
land_collision_start = 13,
|
||||
at_target = 14,
|
||||
listen = 15,
|
||||
money = 16,
|
||||
moving_end = 17,
|
||||
moving_start = 18,
|
||||
not_at_rot_target = 19,
|
||||
not_at_target = 20,
|
||||
touch_start = 21,
|
||||
object_rez = 22,
|
||||
remote_data = 23,
|
||||
at_rot_target = 24,
|
||||
transaction_result = 25,
|
||||
//
|
||||
//
|
||||
run_time_permissions = 28,
|
||||
touch_end = 29,
|
||||
state_entry = 30,
|
||||
//
|
||||
//
|
||||
changed = 33,
|
||||
link_message = 34,
|
||||
no_sensor = 35,
|
||||
on_rez = 36,
|
||||
sensor = 37,
|
||||
http_request = 38,
|
||||
|
||||
path_update = 40,
|
||||
|
||||
// marks highest numbered event
|
||||
Size = 41
|
||||
}
|
||||
|
||||
// this is not the right place for this
|
||||
// for now it must match similar enums duplicated on scritp engines
|
||||
// ignore this flags, do not use .net flags handle, it is bad
|
||||
[Flags]
|
||||
public enum scriptEvents
|
||||
public enum scriptEvents : ulong
|
||||
{
|
||||
None = 0,
|
||||
attach = 1,
|
||||
collision = 16,
|
||||
collision_end = 32,
|
||||
collision_start = 64,
|
||||
control = 128,
|
||||
dataserver = 256,
|
||||
email = 512,
|
||||
http_response = 1024,
|
||||
land_collision = 2048,
|
||||
land_collision_end = 4096,
|
||||
land_collision_start = 8192,
|
||||
at_target = 16384,
|
||||
at_rot_target = 16777216,
|
||||
listen = 32768,
|
||||
money = 65536,
|
||||
moving_end = 131072,
|
||||
moving_start = 262144,
|
||||
not_at_rot_target = 524288,
|
||||
not_at_target = 1048576,
|
||||
remote_data = 8388608,
|
||||
run_time_permissions = 268435456,
|
||||
state_entry = 1073741824,
|
||||
state_exit = 2,
|
||||
timer = 4,
|
||||
touch = 8,
|
||||
touch_end = 536870912,
|
||||
touch_start = 2097152,
|
||||
transaction_result = 33554432,
|
||||
object_rez = 4194304,
|
||||
state_exit = 1UL << 1,
|
||||
timer = 1UL << 2,
|
||||
touch = 1UL << 3,
|
||||
collision = 1UL << 4,
|
||||
collision_end = 1UL << 5,
|
||||
collision_start = 1UL << 6,
|
||||
control = 1UL << 7,
|
||||
dataserver = 1UL << 8,
|
||||
email = 1UL << 9,
|
||||
http_response = 1UL << 10,
|
||||
land_collision = 1UL << 11,
|
||||
land_collision_end = 1UL << 12,
|
||||
land_collision_start = 1UL << 13,
|
||||
at_target = 1UL << 14,
|
||||
listen = 1UL << 15,
|
||||
money = 1UL << 16,
|
||||
moving_end = 1UL << 17,
|
||||
moving_start = 1UL << 18,
|
||||
not_at_rot_target = 1UL << 19,
|
||||
not_at_target = 1UL << 20,
|
||||
touch_start = 1UL << 21,
|
||||
object_rez = 1UL << 22,
|
||||
remote_data = 1UL << 23,
|
||||
at_rot_target = 1UL << 24,
|
||||
transaction_result = 1UL << 25,
|
||||
//
|
||||
//
|
||||
run_time_permissions = 1UL << 28,
|
||||
touch_end = 1UL << 29,
|
||||
state_entry = 1UL << 30,
|
||||
//
|
||||
//
|
||||
changed = 1UL << 33,
|
||||
link_message = 1UL << 34,
|
||||
no_sensor = 1UL << 35,
|
||||
on_rez = 1UL << 36,
|
||||
sensor = 1UL << 37,
|
||||
http_request = 1UL << 38,
|
||||
|
||||
path_update = 1UL << 40,
|
||||
|
||||
anytouch = touch | touch_end | touch_start,
|
||||
anyTarget = at_target | not_at_target | at_rot_target | not_at_rot_target
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user