示例#1
0
        static void ClothChangePrefix(ref ClothChange __instance)
        {
            closetCoordinateList = Singleton <Game> .Instance.Environment.ClosetCoordinateList;
            List <string> filteredList = new List <string>();
            Traverse      tra          = new Traverse(__instance);
            string        name         = tra.Property <AgentActor>("Agent").Value.CharaName.ToLower();

            foreach (string coord in Singleton <Game> .Instance.Environment.ClosetCoordinateList)
            {
                if (coord.ToLower().Contains(name))
                {
                    filteredList.Add(coord);
                }
            }
            if (filteredList.Count > 0)
            {
                Singleton <Game> .Instance.Environment.ClosetCoordinateList = filteredList;
            }
        }
 public static void ClothChange_OnCompletedStateTask_CleanUpCum(ClothChange __instance) => Tools.CleanUpSiru(__instance);