コード例 #1
0
        public static ISaveGameSourceProviderService Create(ISaveGameSourceProvider entity)
        {
            var result = new SaveGameSourceFile();

            result._saveGameBack = SaveGameBackUp.Create(entity);
            return(result);
        }
コード例 #2
0
        public static ISaveGameBackUp Create(ISaveGameSourceProvider entity)
        {
            var result = new SaveGameBackUp();

            result.SonFileName         = entity.SonFileName;
            result.FatherFileName      = entity.FatherFileName;
            result.GrandFatherFileName = entity.GrandFatherFileName;

            result.CreationTimeSpan      = entity.CreationTimeSpan;
            result.MinRunTime            = entity.MinRunTime;
            result.TimeToSaveFather      = entity.TimeToSaveFather;
            result.TimeToSaveGrandFather = entity.TimeToSaveGrandFather;

            result._sonFileWriter         = FileWriter.Create(entity.SonFileName);
            result._fatherFileWriter      = FileWriter.Create(entity.FatherFileName);
            result._grandFatherFileWriter = FileWriter.Create(entity.GrandFatherFileName);
            return(result);
        }