Exemple #1
0
    public override void NodeCallback()
    {
        base.NodeCallback();

        int[]             arrayValues = GetCentralInst().GetVariableLinks(0, GetNodeId(), GetVariableId("Values"))[GetNodeVariable <int>("Array Element")];
        RuntimeParameters targetVar   = GetCentralInst().ReturnRuntimeParameter(arrayValues[0], arrayValues[1]);

        targetVar.RunGenericBasedOnRP <RuntimeParameters>(this, targetVar);
    }
Exemple #2
0
    public override void ThreadZeroed(int parentThread)
    {
        base.ThreadZeroed(parentThread);

        AbilityCentralThreadPool centralInst = GetCentralInst();

        int[][] variableLinks = centralInst.GetVariableLinks(0, GetNodeId(), GetVariableId("Return from Variable"));
        if (variableLinks.Length == 0)
        {
            return;
        }

        int[] modifiedReturn = variableLinks[0];

        returnTargetInst = centralInst.ReturnRuntimeParameter(modifiedReturn[0], modifiedReturn[1]);
        returnTargetInst.RunGenericBasedOnRP <int>(this, parentThread);
        threadMap.Remove(parentThread);
    }