• R/O
  • HTTP
  • SSH
  • HTTPS

KCD: Commit

main code repository.


Commit MetaInfo

Revision7e51bff2a2e815cf397c230f8a18c57c4ecdbce5 (tree)
Time2017-02-22 23:07:59
Authormasakih <masakih@user...>
Commitermasakih

Log Message

MasterSTypeMapperを作成

Change Summary

Incremental Difference

--- a/KCD.xcodeproj/project.pbxproj
+++ b/KCD.xcodeproj/project.pbxproj
@@ -131,6 +131,7 @@
131131 F47215AC1E1FA2460083D3BC /* HMTemporaryDataStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47215AB1E1FA2460083D3BC /* HMTemporaryDataStore.swift */; };
132132 F47215B01E1FEACC0083D3BC /* HMServerDataStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47215AF1E1FEACC0083D3BC /* HMServerDataStore.swift */; };
133133 F47C3E981E5DB29300D97449 /* JSONMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47C3E971E5DB29300D97449 /* JSONMapper.swift */; };
134+ F47C3E9A1E5DC90000D97449 /* MasterSTypeMapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47C3E991E5DC90000D97449 /* MasterSTypeMapper.swift */; };
134135 F490977B1E19C3910085A45D /* HMSuppliesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F490977A1E19C3910085A45D /* HMSuppliesView.swift */; };
135136 F490977D1E19DF390085A45D /* HMSlotItemFrameView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F490977C1E19DF390085A45D /* HMSlotItemFrameView.swift */; };
136137 F490977F1E19ED400085A45D /* HMStrengthenListItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F490977E1E19ED400085A45D /* HMStrengthenListItemView.swift */; };
@@ -438,6 +439,7 @@
438439 F47215AB1E1FA2460083D3BC /* HMTemporaryDataStore.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMTemporaryDataStore.swift; sourceTree = "<group>"; };
439440 F47215AF1E1FEACC0083D3BC /* HMServerDataStore.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMServerDataStore.swift; sourceTree = "<group>"; };
440441 F47C3E971E5DB29300D97449 /* JSONMapper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSONMapper.swift; sourceTree = "<group>"; };
442+ F47C3E991E5DC90000D97449 /* MasterSTypeMapper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MasterSTypeMapper.swift; sourceTree = "<group>"; };
441443 F490977A1E19C3910085A45D /* HMSuppliesView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMSuppliesView.swift; sourceTree = "<group>"; };
442444 F490977C1E19DF390085A45D /* HMSlotItemFrameView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMSlotItemFrameView.swift; sourceTree = "<group>"; };
443445 F490977E1E19ED400085A45D /* HMStrengthenListItemView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMStrengthenListItemView.swift; sourceTree = "<group>"; };
@@ -1085,6 +1087,7 @@
10851087 F4B15CBC1E21BA870078CFFC /* CommandRegister.swift */,
10861088 F4A0D71A1E30D77B00224DCE /* HMJSONCommand.swift */,
10871089 F47C3E971E5DB29300D97449 /* JSONMapper.swift */,
1090+ F47C3E991E5DC90000D97449 /* MasterSTypeMapper.swift */,
10881091 F4A0D7161E2FB7E000224DCE /* HMCompositCommand.swift */,
10891092 F44BC6D01E224299004644E3 /* HMPortCommand.swift */,
10901093 F44BC6CA1E223208004644E3 /* HMIgnoreCommand.swift */,
@@ -1475,6 +1478,7 @@
14751478 F4AA594A1E1E4863001667AF /* HMMapWindowController.swift in Sources */,
14761479 F4FC3E961E46AC3000E41228 /* HMTSVSupport.swift in Sources */,
14771480 F42A8FDA1E3DF2230099DC1D /* HMKCShipObject.swift in Sources */,
1481+ F47C3E9A1E5DC90000D97449 /* MasterSTypeMapper.swift in Sources */,
14781482 F4E5FF101E17A83D0026868C /* HMScreenshotListWindowController.swift in Sources */,
14791483 F44BC7031E252C4F004644E3 /* HMUpdateSlotItemCommand.swift in Sources */,
14801484 F44BC73F1E2B1AD4004644E3 /* HMDummyShipCommand.swift in Sources */,
--- a/KCD/HMMasterSTypeCommand.swift
+++ b/KCD/HMMasterSTypeCommand.swift
@@ -17,6 +17,7 @@ class HMMasterSTypeCommand: HMJSONCommand {
1717 }
1818
1919 override func execute() {
20- commitJSON(toEntityNamed: "MasterSType")
20+// commitJSON(toEntityNamed: "MasterSType")
21+ MasterSTypeMapper().commit(json)
2122 }
2223 }
--- /dev/null
+++ b/KCD/MasterSTypeMapper.swift
@@ -0,0 +1,17 @@
1+//
2+// MasterSTypeMapper.swift
3+// KCD
4+//
5+// Created by Hori,Masaki on 2017/02/22.
6+// Copyright © 2017年 Hori,Masaki. All rights reserved.
7+//
8+
9+import Cocoa
10+
11+class MasterSTypeMapper: JSONMapper {
12+ let configuration: MappingConfiguration = {
13+ return MappingConfiguration(entityName: "MasterSType",
14+ dataKey: "api_data.api_mst_stype",
15+ editorStore: HMServerDataStore.oneTimeEditor())
16+ }()
17+}
Show on old repository browser