Exemplo n.º 1
0
        public static List <Building> GetAllBuildings()
        {
            JsonAllInfo jsonInfo = LoadManager.Load();

            if (jsonInfo == null)
            {
                return(null);
            }


            List <Building> buildings = new List <Building>();

            foreach (JsonBuilding jb in jsonInfo.UserBuildings)
            {
                buildings.Add(ParseBuilding(jb));
            }
            return(buildings);
        }