protected void SubmitResourceTileSelection(ResourceTileSelection selection)
{
if (selection.Count() == 0) {
GameGUIManager.use.SetErrorMessage("No tiles selected.");
return;
}
if (isActionInProgress) {
GameGUIManager.use.PlayInvalidActionSound();
return;
}
//Check Resources
/*
if (!DoResourceCalculations(selection)) {
return;
}*/
// if there is no API point, use the god mode implementation
if (!hasServerAPIPoint) {
StartCoroutine(Put(selection));
}
// otherwise use the api point on the server
else {
StartCoroutine(SubmitResourceTileSelectionToServerAPI(selection));
}
}