mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Yengine: avoid use of Enum.Parse
This commit is contained in:
@@ -219,5 +219,45 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
// llmineventdelay support
|
||||
double m_minEventDelay = 0.0;
|
||||
double m_nextEventTime = 0.0;
|
||||
|
||||
private static readonly Dictionary<string, ScriptEventCode> m_eventCodeMap = new Dictionary<string, ScriptEventCode>()
|
||||
{
|
||||
{"attach", ScriptEventCode.attach},
|
||||
{"at_rot_target", ScriptEventCode.at_rot_target},
|
||||
{"at_target", ScriptEventCode.at_target},
|
||||
{"collision", ScriptEventCode.collision},
|
||||
{"collision_end", ScriptEventCode.collision_end},
|
||||
{"collision_start", ScriptEventCode.collision_start},
|
||||
{"control", ScriptEventCode.control},
|
||||
{"dataserver", ScriptEventCode.dataserver},
|
||||
{"email", ScriptEventCode.email},
|
||||
{"http_response", ScriptEventCode.http_response},
|
||||
{"land_collision", ScriptEventCode.land_collision},
|
||||
{"land_collision_end", ScriptEventCode.land_collision_end},
|
||||
{"land_collision_start", ScriptEventCode.land_collision_start},
|
||||
{"listen", ScriptEventCode.listen},
|
||||
{"money", ScriptEventCode.money},
|
||||
{"moving_end", ScriptEventCode.moving_end},
|
||||
{"moving_start", ScriptEventCode.moving_start},
|
||||
{"not_at_rot_target", ScriptEventCode.not_at_rot_target},
|
||||
{"not_at_target", ScriptEventCode.not_at_target},
|
||||
{"remote_data", ScriptEventCode.remote_data},
|
||||
{"run_time_permissions", ScriptEventCode.run_time_permissions},
|
||||
{"state_entry", ScriptEventCode.state_entry},
|
||||
{"state_exit", ScriptEventCode.state_exit},
|
||||
{"timer", ScriptEventCode.timer},
|
||||
{"touch", ScriptEventCode.touch},
|
||||
{"touch_end", ScriptEventCode.touch_end},
|
||||
{"touch_start", ScriptEventCode.touch_start},
|
||||
{"transaction_result", ScriptEventCode.transaction_result},
|
||||
{"object_rez", ScriptEventCode.object_rez},
|
||||
{"changed", ScriptEventCode.changed},
|
||||
{"link_message", ScriptEventCode.link_message},
|
||||
{"no_sensor", ScriptEventCode.no_sensor},
|
||||
{"on_rez", ScriptEventCode.on_rez},
|
||||
{"sensor", ScriptEventCode.sensor},
|
||||
{"http_request", ScriptEventCode.http_request},
|
||||
{"path_update", ScriptEventCode.path_update}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user