예제 #1
0
파일: AStarPath.cs 프로젝트: kyondi/ZMOBA
        public void AddGraph(AStarData.GraphType graphType)
        {
            switch (graphType)
            {
            case AStarData.GraphType.GridGraph:
            {
                GridNavGraph gridGraph = new GridNavGraph(AStarData.graphIndex++);
                gridGraph.graphType = (int)graphType;
                AStarData.AddGrapData(gridGraph);
            }
            break;

            default:
                break;
            }
        }
예제 #2
0
    private void CreateGraphEditor(AStarData.GraphType type, GraphBase graphObj)
    {
        switch (type)
        {
        case AStarData.GraphType.GridGraph:
        {
            GridGraphEditor gridGraph = new GridGraphEditor();
            gridGraph.targetGraph = graphObj;
            graphEditors.Add(graphObj.graphIndex, gridGraph);
        }
        break;

        default:
            break;
        }
    }
예제 #3
0
파일: AStarPath.cs 프로젝트: kyondi/ZMOBA
 public void AddGraph(int type)
 {
     AStarData.GraphType graphType = (AStarData.GraphType)type;
     AddGraph(graphType);
 }
예제 #4
0
 public void AddGraph(AStarData.GraphType type)
 {
     aStarPathScript.AddGraph(type);
 }