Exemplo n.º 1
0
 public static void Message(string text, MessageTypeDef def, bool historical = true)
 {
     if (AcceptsMessage(text, TargetInfo.Invalid))
     {
         Message(new Message(text.CapitalizeFirst(), def), historical);
     }
 }
Exemplo n.º 2
0
 public static void Message(string text, LookTargets lookTargets, MessageTypeDef def, bool historical = true)
 {
     if (AcceptsMessage(text, lookTargets))
     {
         Message(new Message(text.CapitalizeFirst(), def, lookTargets), historical);
     }
 }
Exemplo n.º 3
0
 public static void Message(string text, MessageTypeDef def, bool historical = true)
 {
     if (Messages.AcceptsMessage(text, TargetInfo.Invalid))
     {
         Message msg = new Message(text, def);
         Messages.Message(msg, historical);
     }
 }
Exemplo n.º 4
0
 public static void Message(string text, LookTargets lookTargets, MessageTypeDef def, bool historical = true)
 {
     if (Messages.AcceptsMessage(text, lookTargets))
     {
         Message msg = new Message(text, def, lookTargets);
         Messages.Message(msg, historical);
     }
 }
Exemplo n.º 5
0
 public static void Message(string text, MessageTypeDef type)
 {
     if (Messages.AcceptsMessage(text, TargetInfo.Invalid))
     {
         LiveMessage msg = new LiveMessage(text);
         Messages.Message(msg, type);
     }
 }
Exemplo n.º 6
0
 public static void Message(string text, GlobalTargetInfo lookTarget, MessageTypeDef type)
 {
     if (Messages.AcceptsMessage(text, lookTarget))
     {
         LiveMessage msg = new LiveMessage(text, lookTarget);
         Messages.Message(msg, type);
     }
 }
Exemplo n.º 7
0
 public Message(string text, MessageTypeDef def)
 {
     this.text          = text;
     this.def           = def;
     this.startingFrame = RealTime.frameCount;
     this.startingTime  = RealTime.LastRealTime;
     this.startingTick  = GenTicks.TicksGame;
     this.ID            = Rand.Int;
 }
Exemplo n.º 8
0
 private static void Message(Messages.LiveMessage msg, MessageTypeDef type)
 {
     Messages.liveMessages.Add(msg);
     while (Messages.liveMessages.Count > 12)
     {
         Messages.liveMessages.RemoveAt(0);
     }
     if (type.sound != null)
     {
         type.sound.PlayOneShotOnCamera(null);
     }
 }
Exemplo n.º 9
0
 public Message(string text, MessageTypeDef def)
 {
     this.text     = text;
     this.def      = def;
     startingFrame = RealTime.frameCount;
     startingTime  = RealTime.LastRealTime;
     startingTick  = GenTicks.TicksGame;
     if (Find.UniqueIDsManager != null)
     {
         ID = Find.UniqueIDsManager.GetNextMessageID();
     }
     else
     {
         ID = Rand.Int;
     }
 }
Exemplo n.º 10
0
 public Message(string text, MessageTypeDef def, LookTargets lookTargets, Quest quest)
     : this(text, def, lookTargets)
 {
     this.quest = quest;
 }
Exemplo n.º 11
0
 public Message(string text, MessageTypeDef def, LookTargets lookTargets)
     : this(text, def)
 {
     this.lookTargets = lookTargets;
 }