public string StartDemoBattle(string robotId) { string battleFieldId = BattleFields.CreateBattleField(robotId, "DemoBattle", RoomType.Private); BattleFields.JoinBattleField(battleFieldId, robotId, PlayType.Manual); BattleFields.JoinBattleField(battleFieldId, "DEMO", PlayType.Auto); BattleField battle = BattleFields.GetBattleField(battleFieldId); battle.StartBattle(); return(battleFieldId); }
public string HostBattle(string robotId, string battleName, RoomType roomType) { return(BattleFields.CreateBattleField(robotId, battleName, roomType)); }