Ejemplo n.º 1
0
        public void Connect(string shardName, Callback onConnect, Callback onError)
        {
            this.onConnect = onConnect;
            this.onError   = onError;

            CityConnectionRegulator.Connect(CityConnectionMode.CAS, new ShardSelectorServletRequest {
                AvatarID  = "0", //0 is used for cas
                ShardName = shardName
            });
        }
Ejemplo n.º 2
0
        public void Connect(string shardName, uint avatarId, Callback onConnect, Callback onError)
        {
            this.onConnect = onConnect;
            this.onError   = onError;

            CityConnectionRegulator.Connect(CityConnectionMode.NORMAL, new ShardSelectorServletRequest
            {
                AvatarID  = avatarId.ToString(),
                ShardName = shardName
            });
        }