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 void JoinBattle(string battleId, string robotId, PlayType playType) { BattleFields.JoinBattleField(battleId, robotId, playType); }