Conreality Software Development Kit (SDK) for Ruby

The Conreality SDK for Ruby is currently at an early development stage at: https://github.com/conreality/conreality.rb

Note

Pending the release of a Conreality SDK for Ruby, you can integrate Ruby software with Conreality games by issuing SQL commands over the PostgreSQL network protocol (via the Pg library). Refer to the documentation for the Conreality SDK for SQL.

Prerequisites

Examples

Connecting to the Master

#!/usr/bin/env ruby

require 'pg'

connection = PG.connect(dbname: ENV['USER'] || 'test')

connection.transaction do
  connection.exec("SELECT 1") do |result|
    p result
  end
end

Installation

Reference

library conreality
require 'conreality'
module Conreality
class Conreality::Asset
class Conreality::Binary
class Conreality::Camera
class Conreality::Client
class Conreality::Database
class Conreality::Event
class Conreality::Message
class Conreality::Object
class Conreality::Player
class Conreality::Session
class Conreality::Theater

Frequently Asked Questions (FAQ)

How can I help contribute to the development of the Ruby SDK?

See https://github.com/conreality/conreality.rb

Does the Ruby SDK also support Ruby 1.9, 2.0, or 2.1?

No, the Conreality SDK for Ruby targets exclusively Ruby 2.2.0 (which was released in 2014) and newer versions of Ruby.

In case you cannot migrate to Ruby 2.2+, we suggest integrating your legacy Ruby software with Conreality games by issuing SQL commands over the PostgreSQL network protocol (via the Pg library). Refer to the documentation for the Conreality SDK for SQL.