public static void showProgram(TemporaryAnimatedSprite sprite, string text, Action afterDialogues = null)
 {
     if (TVIntercept.activeIntercept != null)
     {
         TVIntercept.showProgram(sprite, text, afterDialogues);
     }
 }
 public static void endProgram()
 {
     if (TVIntercept.activeIntercept != null)
     {
         TVIntercept.endProgram();
     }
 }
        public static void addChannel(string id, string name, Action <TV, TemporaryAnimatedSprite, StardewValley.Farmer, string> action = null)
        {
            if (action == null)
            {
                action = defaultAction;
            }

            TVIntercept.addChannel(id, name, action);
        }
Пример #4
0
        public override bool checkForAction(StardewValley.Farmer who, bool justCheckingForActivity = false)
        {
            if (justCheckingForActivity)
            {
                return(true);
            }

            activeIntercept = this;
            showChannels(0);

            return(true);
        }
Пример #5
0
 public static void endProgram()
 {
     activeIntercept.turnOffTV();
     activeIntercept = null;
 }
 public static void removeChannel(string key)
 {
     TVIntercept.removeKey(key);
 }
 public static void changeAction(string id, Action <TV, TemporaryAnimatedSprite, StardewValley.Farmer, string> action)
 {
     TVIntercept.changeAction(id, action);
 }