Ejemplo n.º 1
0
 public static void showProgram(TemporaryAnimatedSprite sprite, string text, Action afterDialogues = null)
 {
     if (TVIntercept.activeIntercept != null)
     {
         TVIntercept.showProgram(sprite, text, afterDialogues);
     }
 }
Ejemplo n.º 2
0
 public static void endProgram()
 {
     if (TVIntercept.activeIntercept != null)
     {
         TVIntercept.endProgram();
     }
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        public override bool checkForAction(StardewValley.Farmer who, bool justCheckingForActivity = false)
        {
            if (justCheckingForActivity)
            {
                return(true);
            }

            activeIntercept = this;
            showChannels(0);

            return(true);
        }
Ejemplo n.º 5
0
 public static void endProgram()
 {
     activeIntercept.turnOffTV();
     activeIntercept = null;
 }
Ejemplo n.º 6
0
 public static void removeChannel(string key)
 {
     TVIntercept.removeKey(key);
 }
Ejemplo n.º 7
0
 public static void changeAction(string id, Action <TV, TemporaryAnimatedSprite, StardewValley.Farmer, string> action)
 {
     TVIntercept.changeAction(id, action);
 }