blob: 19b5bdde15747b045e1b004e0d0f23d8a81a18fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
using System;
using XMainClient.UI;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient
{
internal class XCommandDirectSys : XBaseCommand
{
private uint CachedOpenSystem;
public override bool Execute()
{
base.publicModule();
return this._execute(this._cmd.param1, this._cmd.param2);
}
public override void OnFinish()
{
XSingleton<XTutorialMgr>.singleton.Exculsive = false;
base.OnFinish();
}
public bool _execute(string param1, string param2)
{
this.CachedOpenSystem = uint.Parse(param1);
XPlayerAttributes xplayerAttributes = XSingleton<XEntityMgr>.singleton.Player.Attributes as XPlayerAttributes;
bool flag = xplayerAttributes.IsSystemOpened(this.CachedOpenSystem);
bool result;
if (flag)
{
result = true;
}
else
{
bool flag2 = !XSingleton<XTutorialHelper>.singleton.IsSysOpend(this.CachedOpenSystem);
if (flag2)
{
result = false;
}
else
{
bool flag3 = this.CachedOpenSystem > 0u;
if (flag3)
{
(XSingleton<XEntityMgr>.singleton.Player.Attributes as XPlayerAttributes).ReallyOpenSystem(this.CachedOpenSystem);
bool flag4 = DlgBase<XMainInterface, XMainInterfaceBehaviour>.singleton.IsVisible();
if (flag4)
{
DlgBase<XMainInterface, XMainInterfaceBehaviour>.singleton.OnSysChange((XSysDefine)this.CachedOpenSystem);
XSingleton<XGameSysMgr>.singleton.RecalculateRedPointState((XSysDefine)this.CachedOpenSystem, true);
}
result = true;
}
else
{
result = false;
}
}
}
return result;
}
}
}
|