Esempio n. 1
0
 public void Input(int id, string name, long area, int population, Mainland mainland)
 {
     this.name       = name;
     this.name       = name;
     this.area       = area;
     this.population = population;
     this.mainland   = mainland;
 }
Esempio n. 2
0
 public Country(int id, string name, long area, int population, Mainland mainland)
 {
     this.id         = id;
     this.name       = name;
     this.name       = name;
     this.area       = area;
     this.population = population;
     this.mainland   = mainland;
 }
Esempio n. 3
0
        public TreeInformation GetOrAddTreeInfo(TreeColor color, TreeType treeType, Mainland mainland)
        {
            var treeData = treeDatas.FirstOrDefault(t => t.Color == color && t.TreeType == treeType && t.Mainland == mainland);

            if (treeData != null)
            {
                return(treeData);
            }

            var newTreeData = new TreeInformation()
            {
                Color    = color,
                TreeType = treeType,
                Mainland = mainland
            };

            treeDatas.Add(newTreeData);
            return(newTreeData);
        }