Conreality Software Development Kit (SDK) for .NET

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

Note

Pending the release of a Conreality SDK for the .NET Framework, you can integrate C#/F#/.NET software with Conreality games by issuing SQL commands over the PostgreSQL network protocol (via the Npgsql PostgreSQL library). Refer to the documentation for the Conreality SDK for SQL.

Prerequisites

Examples

Connecting to the Master

// mcs -r:Conreality -r:Npgsql -r:System.Data connect.cs && mono connect.exe

using Conreality;

public class Connect {
  public static void Main() {

    using (var client = new Conreality.Client()) {
      // TODO
    }
  }
}

Connecting to the Master (without the SDK)

// mcs -r:Npgsql -r:System.Data lowlevel.cs && mono lowlevel.exe

using Npgsql;

public class Lowlevel {
  public static void Main() {

    using (var conn = new NpgsqlConnection("Host=localhost;Database=test")) {
      conn.Open();

      using (var cmd = new NpgsqlCommand("SELECT 42 AS answer", conn))
      using (var reader = cmd.ExecuteReader()) {
        while (reader.Read()) {
          System.Console.WriteLine(reader.GetString(0));
        }
      }
    }
  }
}

Installation

https://www.nuget.org/packages/Conreality/

$ nuget install Conreality

Reference

assembly Conreality.dll
namespace Conreality
using Conreality;
class Conreality.Action
class Conreality.Client
class Conreality.Event
class Conreality.Game
class Conreality.Message
class Conreality.Object
class Conreality.Session

Frequently Asked Questions (FAQ)

How can I help contribute to the development of the .NET SDK?

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

Which .NET Framework version does the .NET SDK target?

The .NET SDK targets .NET 4.6 and C# 6. These are, not coincidentally, the experimental API compatibility levels expected to ship with Unity3D 2017.1 (based on Mono 4.8).