public static void Message(string text, MessageTypeDef def, bool historical = true) { if (AcceptsMessage(text, TargetInfo.Invalid)) { Message(new Message(text.CapitalizeFirst(), def), historical); } }
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); } }
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); } }
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); } }
public static void Message(string text, MessageTypeDef type) { if (Messages.AcceptsMessage(text, TargetInfo.Invalid)) { LiveMessage msg = new LiveMessage(text); Messages.Message(msg, type); } }
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); } }
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; }
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); } }
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; } }
public Message(string text, MessageTypeDef def, LookTargets lookTargets, Quest quest) : this(text, def, lookTargets) { this.quest = quest; }
public Message(string text, MessageTypeDef def, LookTargets lookTargets) : this(text, def) { this.lookTargets = lookTargets; }