public void UI_Induce(string[] commandParams) { if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.uiInfo.type = commandParams[1]; this.commandParams.uiInfo.enabled = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[2])); if (3 < commandParams.Length) { this.commandParams.uiInfo.arrowPosition = ScriptUtil.GetIndex(new string[] { "top", "bottom", "left", "right" }, commandParams[3]); } else { this.commandParams.uiInfo.arrowPosition = 0; } }
public void Se(string[] commandParams) { if (5 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.seInfo.play = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[1])); this.commandParams.seInfo.fadeTime = ScriptUtil.GetFloat(commandParams[2]); this.commandParams.seInfo.loop = (0 == ScriptUtil.GetIndex(new string[] { "loop", "one" }, commandParams[3])); this.commandParams.seInfo.fileName = commandParams[4]; if (6 > commandParams.Length) { this.commandParams.seInfo.pitch = 1f; } else { this.commandParams.seInfo.pitch = ScriptUtil.GetFloat(commandParams[5]); } }
public void BattlePause(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.battleInfo.pause = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[1])); }
public void Mask(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.enableMask = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[1])); }
public void SoundVolume(string[] commandParams) { if (3 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.soundVolumeInfo.enable = (0 == ScriptUtil.GetIndex(new string[] { "in", "out" }, commandParams[1])); this.commandParams.soundVolumeInfo.time = ScriptUtil.GetFloat(commandParams[2]); }
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 Bgm(string[] commandParams) { if (4 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.bgmInfo.play = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[1])); this.commandParams.bgmInfo.fadeTime = ScriptUtil.GetFloat(commandParams[2]); this.commandParams.bgmInfo.fileName = commandParams[3]; }
public void CharaDelete(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.charaInfo.type = ScriptUtil.GetIndex(new string[] { "body", "monitor" }, commandParams[1]); this.commandParams.charaInfo.yFromCenter = 0; this.commandParams.charaInfo.faceId = "5"; }
public void WindowPicture(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.windowPictureInfo.thumbnail = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[1])); this.commandParams.windowPictureInfo.prefabNames.Clear(); for (int i = 2; i < commandParams.Length; i++) { this.commandParams.windowPictureInfo.prefabNames.Add(commandParams[i]); } }
public void Effect(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.screenEffectInfo.start = (0 == ScriptUtil.GetIndex(new string[] { "on", "off" }, commandParams[1])); this.commandParams.screenEffectInfo.type = ScriptUtil.GetIndex(new string[] { "siren", "connect", "shutdown" }, commandParams[2]); }
public void Fade(string[] commandParams) { if (4 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.fadeInfo.enable = (0 == ScriptUtil.GetIndex(new string[] { "out", "in" }, commandParams[1])); this.commandParams.fadeInfo.type = ScriptUtil.GetIndex(new string[] { "white", "black" }, commandParams[2]); this.commandParams.fadeInfo.time = ScriptUtil.GetFloat(commandParams[3]); }
public void Scene(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.sceneInfo.type = ScriptUtil.GetIndex(new string[] { "black", "tutorial", "warp", "world", "world_collapse", "battle", "farm", "white" }, commandParams[1]); this.commandParams.sceneInfo.isBattle = ("battle" == commandParams[1]); }
public void Chara(string[] commandParams) { if (2 > commandParams.Length) { Debug.LogError("引数が足りない"); return; } this.commandParams.charaInfo.type = ScriptUtil.GetIndex(new string[] { "body", "monitor" }, commandParams[1]); if (3 <= commandParams.Length) { this.commandParams.charaInfo.faceId = commandParams[2]; } else { this.commandParams.charaInfo.faceId = "5"; } }
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); }