Loading...   

  • Created By Uleat On: 09:10 PM October 16, 2018
  • Link

+bool Client::AddSpawnedBotgroup(const BotgroupListEntry &botgroup) {
+	if (botgroup.botgroup_name[0] == '\0' || !botgroup.botgroup_id)
+		return false;
+
+	for (auto iter : spawned_botgroup_list) {
+		if (iter.botgroup_id == botgroup.botgroup_id)
+			return false;
+	}
+
+	spawned_botgroup_list.push_back(botgroup);
+	return true;
+}
+
+bool Client::AddSpawnedBotgroup(BotgroupListEntry &&botgroup) {
+	if (botgroup.botgroup_name[0] == '\0' || !botgroup.botgroup_id)
+		return false;
+
+	for (auto iter : spawned_botgroup_list) {
+		if (iter.botgroup_id == botgroup.botgroup_id)
+			return false;
+	}
+
+	spawned_botgroup_list.push_back((BotgroupListEntry)botgroup);
+	return true;
+}

Raw Paste Data