CoralMUD-0.15/
CoralMUD-0.15/core/
CoralMUD-0.15/data/
CoralMUD-0.15/data/areas/
CoralMUD-0.15/data/help/
CoralMUD-0.15/data/players/
CoralMUD-0.15/lib/automap/
CoralMUD-0.15/lib/items/
class Player
  def cmd_create cte, arg
    if arg.is_a? String
      f = format_generator 5
      text_to_player "Syntax:  create <type>" + ENDL
      text_to_player "Valid types: " + ENDL
      $editable_classes.each_pair do |k, v|
        text_to_player "#{k} "
        text_to_player f.resume
      end
      text_to_player ENDL
      return
    end

    if arg.respond_to? :create
      obj = arg.create(self)
    else
      text_to_player "Error:  No method to create from that class." + ENDL
      return
    end

    @editing=@editing || []
    @editing.unshift obj
    text_to_player "Created.  You're currently editing #{@editing[0]}." + ENDL
    execute_command("show")
  end
end