コード例 #1
0
ファイル: ActionManager.cs プロジェクト: pbostrm/ceres
    protected virtual void Action()
    {
        int currentPointValue = getIDfromPoint(CameraNavigator.focusPoint);

        if(pendingWork!=null)
        {
            pendingWork.PendingAction(CameraNavigator.focusPoint,currentPointValue);
        }
        else
        {
            if(workType != null)
            {
               // DebugOutput.Shout("Want to create work " + workType.Description);
                pendingWork = ((Work)Activator.CreateInstance(Type.GetType(workType.className)));
                pendingWork.Construct(CameraNavigator.focusPoint, currentPointValue,workType);
            }

        }
    }