Ejemplo n.º 1
0
 public static void Prefix(string key, Story.GoalType goalType)
 {
     if (!StoryGoalManager.main.completedGoals.Contains(key))
     {
         StoryEventSend packet = new StoryEventSend((StoryEventSend.EventType)goalType, key);
         NitroxServiceLocator.LocateService <IPacketSender>().Send(packet);
     }
 }
        public static void Prefix(OnGoalUnlockData __instance, string completedGoal)
        {
            Dictionary <string, OnGoalUnlock> goalUnlocks = __instance.ReflectionGet("goalUnlocks", false, false) as Dictionary <string, OnGoalUnlock>;

            if (goalUnlocks.TryGetValue(completedGoal, out OnGoalUnlock onGoalUnlock))
            {
                StoryEventSend packet = new StoryEventSend(StoryEventSend.EventType.GOAL_UNLOCK, completedGoal);
                NitroxServiceLocator.LocateService <IPacketSender>().Send(packet);
            }
        }
        public static void Prefix(string key, GoalType goalType)
        {
            StoryEventSend packet = new StoryEventSend((StoryEventType)goalType, key);

            Multiplayer.Logic.ClientBridge.Send(packet);
        }
Ejemplo n.º 4
0
        public static void Prefix(string key, GoalType goalType)
        {
            StoryEventSend packet = new StoryEventSend((StoryEventType)goalType, key);

            NitroxServiceLocator.LocateService <IPacketSender>().Send(packet);
        }