blob: 4ddec714f2af7eab4df6df1da23ccb9e8475943f (
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
|
using System;
using System.Collections.Generic;
using XUtliPoolLib;
namespace XMainClient
{
internal class first_slash_show
{
private static bool _replaced = false;
public static bool Do(List<XActor> actors)
{
bool flag = actors != null && actors.Count == XGame.RoleCount && !first_slash_show._replaced;
if (flag)
{
for (int i = 0; i < XGame.RoleCount; i++)
{
XActor xactor = actors[i];
bool replaced = xactor.Replaced;
if (replaced)
{
uint key = (uint)(i + 1);
XEntityStatistics.RowData byID = XSingleton<XEntityMgr>.singleton.EntityStatistics.GetByID(key);
XOutlookData xoutlookData = new XOutlookData();
xoutlookData.SetDefaultFashion(byID.FashionTemplate);
XDummy dummy = XSingleton<XEntityMgr>.singleton.CreateDummy(byID.PresentID, (uint)byID.FashionTemplate, xoutlookData, false, false, true);
xactor.ReplaceActor(dummy);
xactor.Replaced = false;
}
bool flag2 = xactor.Dummy != null && xactor.Dummy.Equipment != null;
if (flag2)
{
xactor.Dummy.Equipment.EnableRealTimeShadow(XQualitySetting._CastShadow);
}
}
first_slash_show._replaced = true;
}
bool flag3 = actors == null;
if (flag3)
{
first_slash_show._replaced = false;
}
return true;
}
}
}
|