コード例 #1
0
        private void ParseSimulationData(SimulationData simulationData)
        {
            switch (simulationData.Method)
            {
            case "SetMesh":
                ParseMeshData(simulationData.Parameters);
                break;

            case "SetAnchorPoints":
                ParseAnchorData(simulationData.Parameters);
                break;

            case "Simulate":
                ParseForceData(simulationData.Parameters);
                break;
            }
        }
コード例 #2
0
 private bool IsValidSimulationRequest(SimulationData simulationData)
 {
     return(simulationData.Method == "SetMesh" ||
            simulationData.Method == "SetAnchorPoints" ||
            simulationData.Method == "Simulate");
 }