public void SaveVersion(SC2VersionEntity verion)
        {
            var info       = InfoEntityConverter.Convert(verion);
            var dataAccess = new SC2VersionsDataAccess(new JsonStorageDataAccess(), "Versions//");

            dataAccess.SaveSC2VersionInfo(info);
        }
        public void SaveBuildOrder(BuildOrderEntity entity)
        {
            var boInfo = InfoEntityConverter.Convert(entity);

            this.mDataAccess.SaveBuildOrder(boInfo);

            this.mBuildEntities[entity.Name] = entity;
        }
Ejemplo n.º 3
0
        public IEnumerable <BuildOrderEntity> GetBuildOrders()
        {
            if (this.mBuildEntities.Values.Count == 0)
            {
                var terranBuild  = InfoEntityConverter.Convert(Construct111Build());
                var protossBuild = InfoEntityConverter.Convert(ConstructKcdc1GateFEvsTerran());
                var zergBuild    = InfoEntityConverter.Convert(ConstructSpeedlingExpandBuild());

                this.mBuildEntities.Add(terranBuild.Name, terranBuild);
                this.mBuildEntities.Add(protossBuild.Name, protossBuild);
                this.mBuildEntities.Add(zergBuild.Name, zergBuild);
            }

            return(this.mBuildEntities.Values);
        }