Exemplo n.º 1
0
        public static RabNetEngBuilding FromPlace(string place, RabNetEngine eng)
        {
            RabPlace rp = RabPlace.Parse(place);

            int[] tiers = eng.db().getTiers(rp.Farm);
            return(new RabNetEngBuilding(tiers[rp.Floor == 2 ? 1 : 0], eng));
        }
Exemplo n.º 2
0
        public static String FullPlaceName(String rawAddress, bool shrt, bool showTier, bool showDescr)
        {
            if (rawAddress == "")
            {
                return(Rabbit.NULL_ADDRESS);
            }

            RabPlace rabPlace = RabPlace.Parse(rawAddress);

            return(FullNameRus(rabPlace.Farm, rabPlace.Floor, rabPlace.Section, rabPlace.Type, rabPlace.Delims, shrt, showTier, showDescr));
        }