public static void ShowTitle(this DescriptorData d) { var ch = d.Character; if (ch.PlayerData.Flags.IsSet(PCFlags.NoIntro)) { d.WriteToBuffer("Press enter...", 0); } else { if (ch.Act.IsSet((int)PlayerFlags.Rip)) { ch.SendRIPTitle(); } else if (ch.Act.IsSet((int)PlayerFlags.Ansi)) { ch.SendANSITitle(); } else { ch.SendASCIITitle(); } } d.ConnectionStatus = ConnectionTypes.PressEnter; }
public static void SendTo(this DescriptorData d, string txt) { if (d == null || string.IsNullOrEmpty(txt)) { return; } d.WriteToBuffer(color.colorize(txt, d), 0); }