Exemplo n.º 1
0
Extension::Extension(RUNDATA * _rdPtr, EDITDATA * edPtr, CreateObjectInfo * cobPtr)
    : rdPtr(_rdPtr), rhPtr(_rdPtr->rHo.AdRunHeader), Runtime(_rdPtr)
{
    /*
        Link all your action/condition/expression functions to their IDs to match the
        IDs in the JSON here
    */

    LinkAction(0, ActionExample);
    LinkAction(1, SecondActionExample);

    LinkCondition(0, AreTwoNumbersEqual);

    LinkExpression(0, Add);
    LinkExpression(1, HelloWorld);



    /*
        This is where you'd do anything you'd do in CreateRunObject in the original SDK

        It's the only place you'll get access to edPtr at runtime, so you should transfer
        anything from edPtr to the extension class here.
    
    */


    
}
Exemplo n.º 2
0
Extension::Extension(LPRDATA _rdPtr, LPEDATA edPtr, fpcob cobPtr)
    : rdPtr(_rdPtr), rhPtr(_rdPtr->rHo.hoAdRunHeader), Runtime(_rdPtr)
{
    /*
        Link all your action/condition/expression functions to their IDs to match the
        IDs in the JSON here
    */

    LinkAction(0, ChangeTempo);
    LinkAction(1, ChangePitch);
	LinkAction(2, ChangePlayBackRate);

    LinkCondition(0, OnError);

    LinkExpression(0, GetVersion);
	LinkExpression(1, LastError);
	

    /*
        This is where you'd do anything you'd do in CreateRunObject in the original SDK

        It's the only place you'll get access to edPtr at runtime, so you should transfer
        anything from edPtr to the extension class here.
    
    */
	sndVersion = soundtouch_getVersionId();
	_snwprintf_s(lastError, _countof(lastError),ERRORSIZE,ErrorS[noError]);
	_snwprintf_s(errorTemp, _countof(errorTemp),ERRORSIZE,ErrorS[noError]);
	sampleRate=0;
	channels=0;
	speechEnabled=edPtr->speechEnabled;
}
Exemplo n.º 3
0
Extension::Extension(LPRDATA _rdPtr, LPEDATA edPtr, fpcob cobPtr)
    : rdPtr(_rdPtr), rhPtr(_rdPtr->rHo.hoAdRunHeader), Runtime(_rdPtr)
{
    /*
        Link all your action/condition/expression functions to their IDs to match the
        IDs in the JSON here
    */

	LinkCondition(0, IsUnicode);

    LinkExpression(0, GetASCIIStringFromUnicodeString);
    LinkExpression(1, GetUnicodeStringFromASCIIString);
	LinkExpression(2, GetASCIIStringFromUnicodeMemory);
	LinkExpression(3, GetUnicodeStringFromASCIIMemory);

	LinkExpression(4, GetASCIIMemoryFromUnicodeString);
    LinkExpression(5, GetUnicodeMemoryFromASCIIString);
	LinkExpression(6, GetASCIIMemoryFromUnicodeMemory);
	LinkExpression(7, GetUnicodeMemoryFromASCIIMemory);

    /*
        This is where you'd do anything you'd do in CreateRunObject in the original SDK

        It's the only place you'll get access to edPtr at runtime, so you should transfer
        anything from edPtr to the extension class here.
    
    */    
}
Exemplo n.º 4
0
Extension::Extension(LPRDATA _rdPtr, LPEDATA edPtr, fpcob cobPtr)
	: rdPtr(_rdPtr), rhPtr(_rdPtr->rHo.hoAdRunHeader), Runtime(_rdPtr)
{
	LinkAction(0, ReturnToRoot);
	LinkAction(1, EnterSubnode);
	LinkAction(2, GotoNodeByID);
	LinkAction(3, AddNodeByID);
	LinkAction(4, SetInt);
	LinkAction(5, SetFloat);
	LinkAction(6, SetString);
	LinkAction(7, RemoveSubnode);
	LinkAction(8, RemoveNodeByID);
	LinkAction(9, RemoveInt);
	LinkAction(10,RemoveFloat);
	LinkAction(11,RemoveString);
	LinkAction(12,CreateSubnode);
	LinkAction(13,IterateNodes);
	LinkAction(14,IterateSubnodes);
	LinkAction(15,IterateInts);
	LinkAction(16,IterateFloats);
	LinkAction(17,IterateStrings);
	LinkAction(18,ClearAll);

	LinkCondition(0,			NodeExists);
	LinkCondition(1,			NodeExistsByID);
	LinkCondition(2,			IntExists);
	LinkCondition(3,			FloatExists);
	LinkCondition(4,			StringExists);
	LinkCondition(TOnNode,		OnNode);
	LinkCondition(TOnSubnode,	OnSubnode);
	LinkCondition(TOnInt,		OnInt);
	LinkCondition(TOnFloat,		OnFloat);
	LinkCondition(TOnString,	OnString);

	LinkExpression(0, NodeID);
	LinkExpression(1, Int);
	LinkExpression(2, Float);
	LinkExpression(3, String);
	LinkExpression(4, SubnodeName);
	LinkExpression(5, IntName);
	LinkExpression(6, FloatName);
	LinkExpression(7, StringName);

	root = new SDNode();
	cur = root;
	Nit = 0;
}
Exemplo n.º 5
0
Extension::Extension(LPRDATA _rdPtr, LPEDATA edPtr, fpcob cobPtr)
    : rdPtr(_rdPtr), rhPtr(_rdPtr->rHo.hoAdRunHeader), Runtime(_rdPtr)
{
    /*
        Link all your action/condition/expression functions to their IDs to match the
        IDs in the JSON here
    */

    LinkCondition(0, Compare);


    /*
        This is where you'd do anything you'd do in CreateRunObject in the original SDK

        It's the only place you'll get access to edPtr at runtime, so you should transfer
        anything from edPtr to the extension class here.
    
    */


    
}