public static GetStringArgument ( string line, int index ) : PolaMUD.Argument | ||
line | string | The input string |
index | int | The index of the desired argument (1 is always the command itself) |
return | PolaMUD.Argument |
public bool CommandAload(Player user, Command command, string text) { text = Parser.GetStringArgument(text, 2).Text; Area area = new Area(); area.Load(text); return(true); }
public bool CommandSay(Player user, Command command, string text) { text = Parser.GetStringArgument(text, 2).Text; foreach (Player player in user.Room.Contents) { player.SendMessage(Colors.GREEN + user.Name + " says '" + text + "'\n\r", "dupe"); } return(true); }