public static void Next() { ++ScriptPosition; if (ScriptPosition <= ScriptLength) { ActionType = int.Parse(SQLEngine.GetValue("SELECT CmdID FROm ScnScript WHERE ID =" + ScriptPosition.ToString())); switch (ActionType) { case 1: TryHard.This(() => SQLEngine.ImagePath()); GraphicEngine.SetBackground(); //MessageBox.Show(text: ScriptPosition.ToString()); break; case 2: break; case 3: break; } } else { MessageBox.Show(text: "End of Script."); } }
public static void GameInit() { ActionType = int.Parse(SQLEngine.GetValue("SELECT CmdID FROm ScnScript WHERE ID =" + ScriptPosition.ToString())); switch (ActionType) { case 1: TryHard.This(() => SQLEngine.ImagePath()); GraphicEngine.SetBackground(); break; case 2: break; case 3: break; } }