Sha256: 48bf7ba225562895599354cb6c4a6a48366c4cef8f8e45a1903193e32c9e528c

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

require 'gamefic'
require 'gamefic-grammar'
require 'gamefic-what'

module Gamefic
  # The Gamefic standard library provides a base collection of entities and
  # rules for interactive fiction.
  #
  module Standard
    extend Gamefic::Scriptable

    require 'gamefic-standard/version'
    require 'gamefic-standard/articles'
    require 'gamefic-standard/queries'
    require 'gamefic-standard/standardized'
    require 'gamefic-standard/enterable'
    require 'gamefic-standard/openable'
    require 'gamefic-standard/lockable'
    require 'gamefic-standard/direction'
    require 'gamefic-standard/entities'
    require 'gamefic-standard/actions'
    require 'gamefic-standard/introduction'
    require 'gamefic-standard/pathfinder'

    include Articles
    include Grammar::Pronoun
    include Actions
    include Introduction

    def connect(origin, destination, direction = nil, type: Portal, two_way: true)
      origin.connect destination, direction: direction, type: type, two_way: two_way
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-standard-3.3.0 lib/gamefic-standard.rb