1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| using LitJson;
| using System;
| using System.Collections;
| using System.Collections.Generic;
|
|
| public static class BattleFieldFactory
| {
|
| public static BattleField CreateBattleField(string guid, int MapID, int FuncLineID, JsonData extendData, List<TeamBase> redTeamList, List<TeamBase> blueTeamList)
| {
| BattleField battleField = null;
|
|
| switch (MapID)
| {
| case 1:
| battleField = new StoryBattleField();
| break;
| case 2:
| battleField = new StoryBossBattleField(guid);
| break;
| default:
| break;
| }
|
| return battleField;
| }
|
|
| }
|
|