Beispiel #1
0
    public override void vmethod_3(DollConfig dollConfig_0, Action action_0)
    {
        GClass859 dj305OTR3fqbj8iFe = GClass866.smethod_0(dollConfig_0);

        this.method_0().vmethod_1(dj305OTR3fqbj8iFe);
        if (action_0 != null)
        {
            action_0();
        }
    }
Beispiel #2
0
    public override void vmethod_3(DollConfig dollConfig_0, Action action_0)
    {
        GClass808 i1JMkOw41TUC9YiQVej = GClass815.smethod_0(dollConfig_0);

        this.method_0().vmethod_1(i1JMkOw41TUC9YiQVej);
        if (action_0 != null)
        {
            action_0();
        }
    }
Beispiel #3
0
    public static GClass808 smethod_0(DollConfig dollConfig_0)
    {
        GClass808 gclass;

        switch (dollConfig_0.DollId)
        {
        case 1:
            gclass = new GClass814();
            break;

        case 2:
            gclass = new GClass813();
            break;

        case 3:
            gclass = new GClass812();
            break;

        case 4:
            gclass = new GClass811();
            break;

        case 5:
            gclass = new GClass810();
            break;

        case 6:
            gclass = new GClass809();
            break;

        default:
            gclass = null;
            break;
        }
        if (gclass != null)
        {
            gclass.Init(dollConfig_0.Keys);
        }
        return(gclass);
    }
Beispiel #4
0
    public static GClass859 smethod_0(DollConfig dollConfig_0)
    {
        GClass859 gclass;

        switch (dollConfig_0.DollId)
        {
        case 1:
            gclass = new GClass865();
            break;

        case 2:
            gclass = new GClass864();
            break;

        case 3:
            gclass = new GClass863();
            break;

        case 4:
            gclass = new GClass862();
            break;

        case 5:
            gclass = new GClass861();
            break;

        case 6:
            gclass = new GClass860();
            break;

        default:
            gclass = null;
            break;
        }
        if (gclass != null)
        {
            gclass.Init(dollConfig_0.Keys);
        }
        return(gclass);
    }
Beispiel #5
0
        private void LoadDoll(UIComponentEvent _)
        {
            var config = DollConfig.FromFile(binaryFormatter, configFilePath());

            doll.SetFromConfig(config);
        }
Beispiel #6
0
 public override void vmethod_3(DollConfig dollConfig_0, Action action_0)
 {
 }
Beispiel #7
0
        internal async void method_8(byte[] byte_0, uint uint_0)
        {
            this.InjectedEncoder = byte_0;
            this.InjectedLen     = uint_0;
            string hash = "";

            using (MD5 md = MD5.Create())
            {
                hash = new string(md.ComputeHash(byte_0).SelectMany(new Func <byte, IEnumerable <char> >(ConnectionManager.< > c.< > c_0.method_0)).ToArray <char>());
            }
            try
            {
                ICoreDopeService   service     = this.Game.Dope.Service;
                TaskAwaiter <bool> taskAwaiter = ((service != null) ? service.IsDollKnown(hash) : null).GetAwaiter();
                if (!taskAwaiter.IsCompleted)
                {
                    await taskAwaiter;
                    TaskAwaiter <bool> taskAwaiter2;
                    taskAwaiter  = taskAwaiter2;
                    taskAwaiter2 = default(TaskAwaiter <bool>);
                }
                if (taskAwaiter.GetResult())
                {
                    byte_0 = null;
                }
            }
            catch
            {
            }
            try
            {
                ICoreDopeService service2 = this.Game.Dope.Service;
                object           obj;
                if (service2 == null)
                {
                    obj = null;
                }
                else
                {
                    string        checksum      = hash;
                    byte[]        data          = byte_0;
                    string        userId        = this.Game.Settings.FlashSettings.userID.ToString();
                    FlashSettings flashSettings = this.Game.Settings.FlashSettings;
                    obj = service2.GetDoll(checksum, data, userId, (flashSettings != null) ? flashSettings.pid : 0);
                }
                DollConfig dollConfig = await obj;
                if (dollConfig != null && dollConfig.DollId != 0)
                {
                    if (dollConfig.DollId == -1)
                    {
                        this.Socket.Disconnect(ErrorReason.NoLicense, null, false);
                    }
                    else
                    {
                        this.Socket.method_5().method_4().vmethod_3(dollConfig, new Action(this.method_9));
                    }
                }
                else
                {
                    this.Socket.Disconnect(ErrorReason.RemoteServiceFailure, null, false);
                }
            }
            catch (Exception ex)
            {
                this.Socket.Disconnect(ErrorReason.RemoteServiceFailure, ex, false);
            }
        }
Beispiel #8
0
 public abstract void vmethod_3(DollConfig dollConfig_0, Action action_0);