Example #1
0
        public static IStoryTrigger DeserializeStoryTrigger(object data, ITriggerReactor parent)
        {
            Dictionary <string, object> dictionary = data as Dictionary <string, object>;

            if (!dictionary.ContainsKey("uid"))
            {
                Service.Logger.Error("Quest Deserialization Error: Trigger Uid not found.");
                return(null);
            }
            string               uid = dictionary["uid"] as string;
            StoryTriggerVO       vo  = Service.StaticDataController.Get <StoryTriggerVO>(uid);
            AbstractStoryTrigger abstractStoryTrigger = StoryTriggerFactory.GenerateStoryTrigger(vo, parent) as AbstractStoryTrigger;

            return(abstractStoryTrigger.FromObject(dictionary) as AbstractStoryTrigger);
        }
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StoryTriggerFactory.GenerateStoryTrigger((StoryTriggerVO)GCHandledObjects.GCHandleToObject(*args), (ITriggerReactor)GCHandledObjects.GCHandleToObject(args[1]))));
 }
 public unsafe static long $Invoke0(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(StoryTriggerFactory.DeserializeStoryTrigger(GCHandledObjects.GCHandleToObject(*args), (ITriggerReactor)GCHandledObjects.GCHandleToObject(args[1]))));
 }