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(string key, Story.GoalType goalType) { if (!StoryGoalManager.main.completedGoals.Contains(key)) { StoryEventSend packet = new(goalType.ToDto(), key); Resolve <IPacketSender>().Send(packet); } }