コード例 #1
0
        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);
        }
コード例 #2
0
 public void ClearPostedEvents()
 {
     PostedEvents.Clear();
 }