public void StartGame(int id, int team, double duration, Vector3 mapPos, Vector3 mapSize, string mapName, Vector3 startPos, ExpandoObject gunSpawns) { GetScreenActiveResolution(ref ScreenWidth, ref ScreenHeight); if (voteMenu != null) { voteMenu.Close(); } voteMenu = null; Map map = new Map(mapPos, mapSize, mapName); Salty.StartGame(id, team, duration, map, startPos, ExpandoToDictionary(gunSpawns)); }
private void VoteMap(List <dynamic> maps) { List <string> mapsList = maps.OfType <string>().ToList(); if (voteMenu == null) { voteMenu = new VoteMenu(this, "Vote Gamemode", "Vote for the next gamemode", mapsList); } else { voteMenu.Close(); voteMenu = new VoteMenu(this, "Vote Map", "Vote for next map", mapsList); } }