Beispiel #1
0
    public NodeCode(NodeGUIDMap guidMap, NodeData funcNodeData)
    {
        this.guidMap      = guidMap;
        this.funcNodeData = funcNodeData;
        connectMapping    = new Dictionary <string, ParmeterConnectingAction>();

        if (funcNodeData is NodeFuncData)
        {
            InitFunc();
        }
        else
        {
            InitLogic();
        }

        guidMap.RegisterCode(this);
    }
Beispiel #2
0
 public StateCompiler(NodeScript script)
 {
     data      = script.serializableNodeData;
     classCode = new StateClassCode(script.userName + script.stateName + "Action");
     guidMap   = new NodeGUIDMap(data);
 }