Exemplo n.º 1
0
        private void _BuildParams()
        {
            var config = new Utility.Ini(this._ReadConfig());

            this._StorageVerifyData.IPAddress = config.Read("Storage", "ipaddr");
            this._StorageVerifyData.Port      = int.Parse(config.Read("Storage", "port"));
            this._StorageVerifyData.Account   = config.Read("Storage", "account");
            this._StorageVerifyData.Password  = config.Read("Storage", "password");
        }
Exemplo n.º 2
0
    public void RecieveInitiative(string name, int initiative, bool isPlayer)
    {
        //Debug.Log("token " + name + " with initiative = " + initiative + " and player = " + isPlayer);
        Utility.Ini newInitiative = new Utility.Ini(name, initiative, isPlayer);
        initiatives.Add(newInitiative);

        initiatives.Sort((p1, p2) => p1.initiative.CompareTo(p2.initiative));
        initiatives.Reverse();

        for (int i = 0; i < initiatives.Count; i++)
        {
            Debug.Log("initiative " + initiatives[i].name + " = " + initiatives[i].initiative);
        }
    }
Exemplo n.º 3
0
        private void _BuildParams()
        {
            var config = new Utility.Ini(this._ReadConfig());

            this._StorageVerifyData.IPAddress = config.Read("Storage", "ipaddr");
            this._StorageVerifyData.Port = int.Parse(config.Read("Storage", "port"));
            this._StorageVerifyData.Account = config.Read("Storage", "account");
            this._StorageVerifyData.Password = config.Read("Storage", "password");
        }