Exemplo n.º 1
0
 public UnityThreadMode(DFConnection connection)
     : base(connection)
 {
 }
Exemplo n.º 2
0
 protected ConnectionMode(DFConnection connection)
 {
     this.connection = connection;
 }
Exemplo n.º 3
0
 public static ConnectionMode GetConnectionMode(DFConnection connection, bool runOnAltThread)
 {
     if (runOnAltThread)
     {
         return new AltThreadMode(connection);
     }
     else
     {
         return new UnityThreadMode(connection);
     }
 }
Exemplo n.º 4
0
    void Start()
    {
        if (_instance != null)
        {
            throw new UnityException("Can't have multiple dwarf fortress connections!");
        }
        _instance = this;

        ConnectAndInit();
    }
Exemplo n.º 5
0
 public AltThreadMode(DFConnection connection)
     : base(connection)
 {
     finished = false;
     errorLock = new Object();
     crashError = null;
     connectionThread = new Thread(new ThreadStart(this.RunForever));
     connectionThread.Start();
 }
Exemplo n.º 6
0
    // Does about what you'd think it does.
    void Start()
    {
        enabled = false;

        DFConnection.RegisterConnectionCallback(this.OnConnectToDF);
    }
Exemplo n.º 7
0
 void Disconnect()
 {
     _instance = null;
     if (connectionMode != null)
     {
         connectionMode.Terminate();
         connectionMode = null;
     }
 }
Exemplo n.º 8
0
 public void Start()
 {
     DFConnection.RegisterConnectionCallback(Initialize);
 }
Exemplo n.º 9
0
 // Use this for initialization
 void Start()
 {
     DFConnection.RegisterConnectionCallback(LoadLayeredSpriteSets);
 }
Exemplo n.º 10
0
 private void Start()
 {
     DFConnection.RegisterConnectionCallback(LoadBuildings);
 }
Exemplo n.º 11
0
 public UnityThread(DFConnection connection) : base(connection)
 {
 }
Exemplo n.º 12
0
 /// <summary>
 /// Used by base classes.
 /// </summary>
 /// <param name="connection">Connection.</param>
 protected ConnectionManager(DFConnection connection)
 {
     this.connection = connection;
 }