Exemplo n.º 1
0
        internal override async Task Action()
        {
            ILocationList location = new LocationProxy();

            try
            {
                System.Diagnostics.Debug.WriteLine("In locations use case");
                System.Diagnostics.Debug.WriteLine("In location val=" + val);
                await location.GetLocationsAsync(val, this);
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("LOCATION EXCEPTION" + e.Message);
                callback.DataFromPractoFail();
            }

            if (locs != null)
            {
                callback.DataFromPractoSuccess(locs);
            }
            else
            {
                callback.DataFromPractoFail();
            }
        }
Exemplo n.º 2
0
 private static void Postfix(LocationProxy __instance)
 {
     if (__instance.GetComponentInChildren <DungeonGenerator>(true) != null)
     {
         return;
     }
     __instance.gameObject.AddComponent <LocationMarker>();
 }
Exemplo n.º 3
0
        private bool OnSpawnLocation(On.LocationProxy.orig_SpawnLocation orig, LocationProxy self)
        {
            bool result = orig(self);

            if (result)
            {
                Jotunn.Logger.LogInfo($"LocationProxy.SpawnLocation {self.m_instance.name} with {self.m_instance.transform.childCount} items");
                Structural.SettleIntegrity(self.m_instance);
            }
            return(result);
        }