OSDN Git Service

HMMasterMapAreaCommandクラスをSwiftで書き換え
[kcd/KCD.git] / KCD / HMCompositMapCommand.m
1 //
2 //  HMCompositMapCommand.m
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2014/04/04.
6 //  Copyright (c) 2014年 Hori,Masaki. All rights reserved.
7 //
8
9 #import "HMCompositMapCommand.h"
10
11 #import "HMMasterSTypeCommand.h"
12 #import "HMMaserShipCommand.h"
13 #import "HMMasterMissionCommand.h"
14 #import "HMMasterSlotItemEquipTypeCommand.h"
15
16 #import "KCD-Swift.h"
17
18 @implementation HMCompositMapCommand
19 + (void)load
20 {
21         static dispatch_once_t onceToken;
22         dispatch_once(&onceToken, ^{
23                 [HMJSONCommand registerClass:self];
24         });
25 }
26
27 + (BOOL)canExcuteAPI:(NSString *)api
28 {
29         return [api isEqualToString:@"/kcsapi/api_start2"];
30 }
31
32 - (id)init
33 {
34         self = [super initWithCommands:
35                         [HMMasterMapAreaCommand new], [HMMasterMapInfoCommand new], [HMMasterMapCellCommand new],
36                         [HMMasterSTypeCommand new], [HMMaserShipCommand new],
37                         [HMMasterMissionCommand new],
38                         [HMMasterFurnitureCommand new],
39                         [HMMasterSlotItemEquipTypeCommand new],
40                         [HMMasterSlotItemCommand new], [HMMasterUseItemCommand new],
41                         nil];
42         return self;
43 }
44 @end