public void SetLinkPoint(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.linkPointNum = ScriptUtil.GetInt(commandParams[1]); }
public void CharaPos(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.charaInfo.yFromCenter = ScriptUtil.GetInt(commandParams[1]); }
public void DigiStone(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.digiStoneNum = ScriptUtil.GetInt(commandParams[1]); }
public void Quest(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.battleInfo.type = ScriptUtil.GetInt(commandParams[1]); }
public void Window(string[] commandParams) { if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.windowInfo.xFromCenter = ScriptUtil.GetInt(commandParams[1]); this.commandParams.windowInfo.yFromCenter = ScriptUtil.GetInt(commandParams[2]); }
public void DigimonExp(string[] commandParams) { if (4 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.digimonExpInfo.index = ScriptUtil.GetInt(commandParams[1]); this.commandParams.digimonExpInfo.level = ScriptUtil.GetInt(commandParams[2]); this.commandParams.digimonExpInfo.exp = ScriptUtil.GetInt(commandParams[3]); }
public void FarmCamera(string[] commandParams) { if (4 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.farmCameraMoveInfo.posGridX = ScriptUtil.GetInt(commandParams[1]); this.commandParams.farmCameraMoveInfo.posGridY = ScriptUtil.GetInt(commandParams[2]); this.commandParams.farmCameraMoveInfo.time = ScriptUtil.GetFloat(commandParams[3]); }
public void Digimon(string[] commandParams) { if (5 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.digimonInfo.monsterGroupID = ScriptUtil.GetInt(commandParams[1]); this.commandParams.digimonInfo.scale = ScriptUtil.GetFloat(commandParams[2]); this.commandParams.digimonInfo.adjustPosition.x = ScriptUtil.GetFloat(commandParams[3]); this.commandParams.digimonInfo.adjustPosition.y = ScriptUtil.GetFloat(commandParams[4]); }
public void FarmSelect(string[] commandParams) { if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.selectFacilityInfo.id = ScriptUtil.GetInt(commandParams[1]); this.commandParams.selectFacilityInfo.selected = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[2])); }
public void Msg(string[] commandParams) { this.commandParams.textInfo.displayText = string.Empty; if (2 < commandParams.Length) { this.commandParams.textInfo.isWindowText = false; this.commandParams.textInfo.xFromCenter = ScriptUtil.GetInt(commandParams[1]); this.commandParams.textInfo.yFromCenter = ScriptUtil.GetInt(commandParams[2]); this.commandParams.textInfo.fadeTime = ScriptUtil.GetFloat(commandParams[3]); } else { this.commandParams.textInfo.isWindowText = true; } }
public void FarmBuild(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.buildFacilityInfo.id = ScriptUtil.GetInt(commandParams[1]); if (3 <= commandParams.Length) { this.commandParams.buildFacilityInfo.posGridX = ScriptUtil.GetInt(commandParams[2]); this.commandParams.buildFacilityInfo.posGridY = ScriptUtil.GetInt(commandParams[3]); this.commandParams.buildFacilityInfo.buildTime = ScriptUtil.GetInt(commandParams[4]); this.commandParams.buildFacilityInfo.buildComplete = false; } else { this.commandParams.buildFacilityInfo.buildComplete = true; } }
public void FarmTarget(string[] commandParams) { if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.targetFacilityInfo.id = ScriptUtil.GetInt(commandParams[1]); this.commandParams.targetFacilityInfo.popEnable = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[2])); if (4 <= commandParams.Length) { this.commandParams.targetFacilityInfo.adjustY = ScriptUtil.GetFloat(commandParams[3]); } else { this.commandParams.targetFacilityInfo.adjustY = 0f; } }
public ScriptEngine.Status Wait(string[] commandParams) { ScriptEngine.Status result = ScriptEngine.Status.NONE; if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return(result); } string text = commandParams[1]; switch (text) { case "time": { if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return(result); } float num2 = ScriptUtil.GetFloat(commandParams[2]); if (0f > num2) { num2 = 0f; } this.commandParams.waitTime = num2; return(ScriptEngine.Status.WAIT_TIME); } case "touch": return(ScriptEngine.Status.WAIT_TOUCH); case "battle_start": return(ScriptEngine.Status.WAIT_BATTLE_START); case "battle_result": return(ScriptEngine.Status.WAIT_BATTLE_RESULT_START); case "battle_action": return(ScriptEngine.Status.WAIT_BATTLE_ACTION_SELECT); case "harvest": if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return(result); } this.commandParams.meatNum = ScriptUtil.GetInt(commandParams[2]); return(ScriptEngine.Status.WAIT_FARM_HARVEST); case "result_end": return(ScriptEngine.Status.WAIT_BATTLE_RESULT_END); case "first_clear": return(ScriptEngine.Status.WAIT_FIRST_CLEAR); case "level_up": return(ScriptEngine.Status.WAIT_MEAL_LEVEL_UP); case "training_open": return(ScriptEngine.Status.WAIT_OPEN_TRAINING_MENU); case "meal_digimon": return(ScriptEngine.Status.WAIT_OPEN_MEAL_DIGIMON_SELECT); case "meal": return(ScriptEngine.Status.WAIT_OPEN_MEAL_GIVE); case "gasha_top": return(ScriptEngine.Status.WAIT_OPEN_GASHA_TOP); case "detail": if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return(result); } this.commandParams.waitOpenDetailUI = ScriptUtil.GetIndex(new string[] { "gasha", "evolution" }, commandParams[2]); return(ScriptEngine.Status.WAIT_OPEN_DIGIMON_DETAIL); case "download": return(ScriptEngine.Status.WAIT_DOWNLOAD); case "meat_farm": return(ScriptEngine.Status.WAIT_BUILD_MEAT_FARM); case "digivice_open": return(ScriptEngine.Status.WAIT_DIGIVICE_OPEN); case "digi_garden": return(ScriptEngine.Status.WAIT_DIGI_GARDEN_OPEN); case "digi_garden_list": return(ScriptEngine.Status.WAIT_DIGI_GARDEN_CHANGE_LIST); case "digi_garden_set_list": return(ScriptEngine.Status.WAIT_DIGI_GARDEN_CHANGE_SET_LIST); case "colosseum_open": return(ScriptEngine.Status.WAIT_COLOSSEUM_OPEN); case "build_tap": if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return(result); } this.commandParams.buildFacilityInfo.id = ScriptUtil.GetInt(commandParams[2]); return(ScriptEngine.Status.WAIT_FARM_BUILD_TAP); case "facility_shop": return(ScriptEngine.Status.WAIT_FACILITY_SHOP_OPEN); case "mission": return(ScriptEngine.Status.WAIT_MISSION_OPEN); } Debug.LogError("引数が対応外"); return(result); }