public bool PostScriptEvent(UUID itemID, EventParams evParams) { List <EventParams> eventsForItem; if (!PostedEvents.ContainsKey(itemID)) { eventsForItem = new List <EventParams>(); PostedEvents.Add(itemID, eventsForItem); } else { eventsForItem = PostedEvents[itemID]; } eventsForItem.Add(evParams); if (PostEventHook != null) { PostEventHook(itemID, evParams); } return(true); }
public void ClearPostedEvents() { PostedEvents.Clear(); }