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 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.singleton.EntityStatistics.GetByID(key); XOutlookData xoutlookData = new XOutlookData(); xoutlookData.SetDefaultFashion(byID.FashionTemplate); XDummy dummy = XSingleton.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; } } }