Exemplo n.º 1
0
        public Journey AddBldBldJourneyWithEphemeralPeople(string b1, string b2)
        {
            CheckFastMode();
            var bc1 = bm.GetBuilding(b1);

            if (bc1 == null)
            {
                return(null);
            }
            var bc2 = bm.GetBuilding(b2);

            if (bc1 == null)
            {
                return(null);
            }
            var pathname = bc1.shortname + " to " + bc2.shortname;

            if (journeyMessages)
            {
                Debug.Log("Spawning journey " + pathname);
            }
            var bdest1 = bc1.GetRandomDest("jnygen");
            var bdest2 = bc2.GetRandomDest("jnygen");
            var jny    = AddBldBldJourney(bdest1, bdest2, pathname);

            return(jny);
        }
Exemplo n.º 2
0
        public Building GetBuilding()
        {
            var bld = bm.GetBuilding(this.placeBld);

            return(bld);
        }