当前位置: 首页>>代码示例>>C++>>正文


C++ CKObjectDeclaration::SetCreationFunction方法代码示例

本文整理汇总了C++中CKObjectDeclaration::SetCreationFunction方法的典型用法代码示例。如果您正苦于以下问题:C++ CKObjectDeclaration::SetCreationFunction方法的具体用法?C++ CKObjectDeclaration::SetCreationFunction怎么用?C++ CKObjectDeclaration::SetCreationFunction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CKObjectDeclaration的用法示例。


在下文中一共展示了CKObjectDeclaration::SetCreationFunction方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CreateCKObjectDeclaration

/*
*******************************************************************
* Function: CKObjectDeclaration *FillBehaviorGetCIValueDecl( void )
*
* Description : As its name infers, this function describes each Building Block
*               on a functional level : what it can be applied to, its GUID, its 
*               creation function, etc.. 
*		
*
* Parameters :
*    None
*
* Returns : CKObjectDeclaration *, containing:
*               - The type of object declaration ( Must Be CKDLL_BEHAVIORPROTOTYPE )
*               - The function that will create the CKBehaviorPrototype for this behavior.
*               - A short description of what the behavior is supposed to do.
*               - The category in which this behavior will appear in the Virtools interface.
*               - A unique CKGUID
*               - Author and Version info
*               - The class identifier of objects to which the behavior can be applied to.
*
*******************************************************************
*/
CKObjectDeclaration	*FillBehaviorGetCIValueDecl(){
	CKObjectDeclaration *od = CreateCKObjectDeclaration(GBL_CI_API_ENTRY("GetCI"));
	od->SetDescription("Returns the Value of a CI");
	
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x6c102cb5,0x57f7702e));
	
	od->SetCategory(GBL_CUSTOMISATION_BB_CAT);
	od->SetAuthorGuid(GBL_AUTHOR_GUID );
	od->SetAuthorName( GBL_AUTHOR );
	od->SetVersion(0x00010000);

	od->SetCreationFunction(CreateGetCIValueProto);
	od->SetCompatibleClassId(CKCID_BEOBJECT);
	return od;
}
开发者ID:gbaumgart,项目名称:GBL_Backup,代码行数:39,代码来源:GBLCIGetCI.cpp

示例2: CreateCKObjectDeclaration

/*
*******************************************************************
* Function: CKObjectDeclaration *FillBehaviour( void )
*
* Description : As its name infers, this function describes each Building Block
*               on a functional level : what it can be applied to, its GUID, its 
*               creation function, etc.. 
*		
*
* Parameters :
*    None
*
* Returns : CKObjectDeclaration *, containing:
*               - The type of object declaration ( Must Be CKDLL_BEHAVIORPROTOTYPE )
*               - The function that will create the CKBehaviorPrototype for this behavior.
*               - A short description of what the behavior is supposed to do.
*               - The category in which this behavior will appear in the Virtools interface.
*               - A unique CKGUID
*               - Author and Version info
*               - The class identifier of objects to which the behavior can be applied to.
*
*******************************************************************
*/
CKObjectDeclaration * GBLLDGetSetup::FillBehaviour( void )
{
    CKObjectDeclaration *objectDeclaration = CreateCKObjectDeclaration( "GBLLDGetSetup" );	

    objectDeclaration->SetType( CKDLL_BEHAVIORPROTOTYPE );
    objectDeclaration->SetCreationFunction( GBLLDGetSetup::CreatePrototype );
    objectDeclaration->SetDescription( "Provides information about the GBL setup parameters." );
    objectDeclaration->SetCategory( "GBL" );
    objectDeclaration->SetGuid( CKGUID( 0x13293d72,0x602607c3 ) );
    objectDeclaration->SetVersion( 0x00000001 );
    objectDeclaration->SetAuthorGuid( CKGUID( 0x56495254, 0x4f4f4c53 ) );
    objectDeclaration->SetAuthorName( "ITI Techmedia" );
    objectDeclaration->SetCompatibleClassId( CKCID_BEOBJECT );

    return objectDeclaration;
}
开发者ID:gbaumgart,项目名称:GBL_Backup,代码行数:39,代码来源:GBLLDGetSetup.cpp

示例3: CreateCKObjectDeclaration

/*
 *******************************************************************
 * Function: CKObjectDeclaration *FillBehavior( void )
 *
 * Description : As its name infers, this function describes each Building Block
 *               on a functional level : what it can be applied to, its GUID, its 
 *               creation function, etc.. 
 *		
 *
 * Paramters :
 *    None
 *
 * Returns : CKObjectDeclaration *, containing:
 *               - The type of object declaration ( Must Be CKDLL_BEHAVIORPROTOTYPE )
 *               - The function that will create the CKBehaviorPrototype for this behavior.
 *               - A short description of what the behavior is supposed to do.
 *               - The category in which this behavior will appear in the Virtools interface.
 *               - A unique CKGUID
 *               - Author and Version info
 *               - The class identifier of objects to which the behavior can be applied to.
 *
 *******************************************************************
 */
CKObjectDeclaration	*CGBLBuildCommand::FillBehavior()
{
	CKObjectDeclaration *objectDeclaration = CreateCKObjectDeclaration("GBLFCBuildCommand");	
	
	objectDeclaration->SetType(CKDLL_BEHAVIORPROTOTYPE);
	objectDeclaration->SetVersion(0x00000001);
	objectDeclaration->SetCreationFunction(CreateBehaviourPrototype);
    objectDeclaration->SetDescription("Build a command");
	objectDeclaration->SetCategory("GBL/Commands");
	objectDeclaration->SetGuid(CKGUID(0xb7074dbe, 0x98390252));
	objectDeclaration->SetAuthorGuid(CKGUID(0x56495254,0x4f4f4c53));
	objectDeclaration->SetAuthorName("ITI Techmedia");
	objectDeclaration->SetCompatibleClassId(CKCID_BEOBJECT);

	return objectDeclaration;
}
开发者ID:gbaumgart,项目名称:GBL_Backup,代码行数:39,代码来源:GBLBuildCommand.cpp

示例4: CreateCKObjectDeclaration

//************************************
// Method:    FillBehaviorJDestroyDecl
// FullName:  FillBehaviorJDestroyDecl
// Access:    public 
// Returns:   CKObjectDeclaration	*
// Qualifier:
//************************************
CKObjectDeclaration	*FillBehaviorJDestroyDecl()
{
	CKObjectDeclaration *od = CreateCKObjectDeclaration("PJDestroy");	
	od->SetCategory("Physic/Joints");
	od->SetDescription("Destroys a joint given by two bodies and the joint type.");
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x42cd6243,0x5f7b18af));
	od->SetAuthorGuid(VTCX_AUTHOR_GUID);
	od->SetAuthorName(VTCX_AUTHOR);
	od->SetVersion(0x00010000);
	od->SetCreationFunction(CreateJDestroyProto);
	od->SetCompatibleClassId(CKCID_3DENTITY);
	od->NeedManager(GUID_MODULE_MANAGER);

	return od;
}
开发者ID:gbaumgart,项目名称:vt,代码行数:23,代码来源:PJDestroy.cpp

示例5: CreateCKObjectDeclaration

/*
*******************************************************************
* Function: CKObjectDeclaration *FillBehaviorPacketIteratorDecl( void )
*
* Description : As its name infers, this function describes each Building Block
*               on a functional level : what it can be applied to, its GUID, its 
*               creation function, etc.. 
*		
*
* Parameters :
*    None
*
* Returns : CKObjectDeclaration *, containing:
*               - The type of object declaration ( Must Be CKDLL_BEHAVIORPROTOTYPE )
*               - The function that will create the CKBehaviorPrototype for this behavior.
*               - A short description of what the behavior is supposed to do.
*               - The category in which this behavior will appear in the Virtools interface.
*               - A unique CKGUID
*               - Author and Version info
*               - The class identifier of objects to which the behavior can be applied to.
*
*******************************************************************
*/
CKObjectDeclaration	*FillBehaviorPacketIteratorDecl(){
	CKObjectDeclaration *od = CreateCKObjectDeclaration(GBL_CI_API_ENTRY("PacketIterator"));
	od->SetDescription("");
	
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x28b95840,0x5fcf36b2));
	
	od->SetCategory(GBL_CUSTOMISATION_BB_CAT);
	od->SetAuthorGuid(GBL_AUTHOR_GUID );
	od->SetAuthorName( GBL_AUTHOR );
	od->SetVersion(0x00010000);

	od->SetCreationFunction(CreatePacketIteratorProto);
	od->SetCompatibleClassId(CKCID_BEOBJECT);
	return od;
}
开发者ID:gbaumgart,项目名称:GBL_Backup,代码行数:39,代码来源:GBLCIPacketIterator.cpp

示例6: CreateCKObjectDeclaration

/*
*******************************************************************
* Function: CKObjectDeclaration *FillBehaviorGetCISDecl( void )
*
* Description : As its name infers, this function describes each Building Block
*               on a functional level : what it can be applied to, its GUID, its 
*               creation function, etc.. 
*		
*
* Parameters :
*    None
*
* Returns : CKObjectDeclaration *, containing:
*               - The type of object declaration ( Must Be CKDLL_BEHAVIORPROTOTYPE )
*               - The function that will create the CKBehaviorPrototype for this behavior.
*               - A short description of what the behavior is supposed to do.
*               - The category in which this behavior will appear in the Virtools interface.
*               - A unique CKGUID
*               - Author and Version info
*               - The class identifier of objects to which the behavior can be applied to.
*
*******************************************************************
*/
CKObjectDeclaration	*FillBehaviorGetCISDecl(){
	CKObjectDeclaration *od = CreateCKObjectDeclaration(GBL_CI_API_ENTRY("GetCIS"));
	
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x7d406b07,0x79ca36c7));
    
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetCategory(GBL_CUSTOMISATION_BB_CAT);
	od->SetAuthorGuid(GBL_AUTHOR_GUID );
	od->SetAuthorName( GBL_AUTHOR );
	od->SetVersion(0x00010000);

	od->SetCreationFunction(CreateGetCISProto);
	od->SetCompatibleClassId(CKCID_BEOBJECT);
	return od;
}
开发者ID:gbaumgart,项目名称:GBL_Backup,代码行数:39,代码来源:GBLCIGetCIS.cpp

示例7: CreateCKObjectDeclaration

/*
 *******************************************************************
 * Function: CKObjectDeclaration *FillBehaviour( void )
 *
 * Description : As its name infers, this function describes each Building Block
 *               on a functional level : what it can be applied to, its GUID, its 
 *               creation function, etc.. 
 *		
 *
 * Parameters :
 *    None
 *
 * Returns : CKObjectDeclaration *, containing:
 *               - The type of object declaration ( Must Be CKDLL_BEHAVIORPROTOTYPE )
 *               - The function that will create the CKBehaviorPrototype for this behavior.
 *               - A short description of what the behavior is supposed to do.
 *               - The category in which this behavior will appear in the Virtools interface.
 *               - A unique CKGUID
 *               - Author and Version info
 *               - The class identifier of objects to which the behavior can be applied to.
 *
 *******************************************************************
 */
CKObjectDeclaration * GBLLDEnableForFac::FillBehaviour( void )
{
    CKObjectDeclaration *objectDeclaration = CreateCKObjectDeclaration( "GBLLDEnableForFac" );	
    
    objectDeclaration->SetType( CKDLL_BEHAVIORPROTOTYPE );
    objectDeclaration->SetCreationFunction( GBLLDEnableForFac::CreatePrototype );
    objectDeclaration->SetDescription( "Enable For Fac" );
    objectDeclaration->SetCategory( "GBL" );
    objectDeclaration->SetGuid( GUID_ENABLEFORFAC );
    objectDeclaration->SetVersion( 0x00000001 );
    objectDeclaration->SetAuthorGuid( CKGUID( 0x56495254, 0x4f4f4c53 ) );
    objectDeclaration->SetAuthorName( "ITI Techmedia" );
    objectDeclaration->SetCompatibleClassId( CKCID_BEOBJECT );
    
    return objectDeclaration;
}
开发者ID:gbaumgart,项目名称:GBL_Backup,代码行数:39,代码来源:GBLLDEnableForFac.cpp

示例8: CreateCKObjectDeclaration

CKObjectDeclaration	*FillBehaviorPCIgnorePairDecl()
{
	CKObjectDeclaration *od = CreateCKObjectDeclaration("PCIgnorePair");	
	od->SetCategory("Physic/Collision");
	od->SetDescription("Enables/Disables collision between two bodies.");
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x63f648f7,0x13c7097f));
	od->SetAuthorGuid(VTCX_AUTHOR_GUID);
	od->SetAuthorName(VTCX_AUTHOR);
	od->SetVersion(0x00010000);
	od->SetCreationFunction(CreatePCIgnorePairProto);
	od->SetCompatibleClassId(CKCID_3DENTITY);
	od->NeedManager(GUID_MODULE_MANAGER);
	
	return od;
}
开发者ID:gbaumgart,项目名称:vt,代码行数:16,代码来源:PCIgnorePair.cpp

示例9: CreateCKObjectDeclaration

CKObjectDeclaration	*FillBehaviorLoadCISDecl(){
	CKObjectDeclaration *od = CreateCKObjectDeclaration("Load CIS");
	od->SetDescription("Loads a Configurable Information Set");
	
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x39344de0,0x65297202));
	
	od->SetCategory(GBL_CUSTOMISATION_BB_CAT);
	od->SetAuthorGuid(GBL_AUTHOR_GUID );
	od->SetAuthorName( GBL_AUTHOR );
	od->SetVersion(0x00010000);
	
	od->SetCreationFunction(CreateLoadCISProto);
	od->SetCompatibleClassId(CKCID_BEOBJECT);
	return od;
}
开发者ID:gbaumgart,项目名称:GBL_Backup,代码行数:16,代码来源:LoadCIS.cpp

示例10: CreateCKObjectDeclaration

//************************************
// Method:    FillBehaviorPClothDetachFromShapeDecl
// FullName:  FillBehaviorPClothDetachFromShapeDecl
// Access:    public 
// Returns:   CKObjectDeclaration	*
// Qualifier:
//************************************
CKObjectDeclaration	*FillBehaviorPClothDetachFromShapeDecl()
{
	CKObjectDeclaration *od = CreateCKObjectDeclaration("PClothDetachFromShape");	
	od->SetCategory("Physic/Cloth");
	od->SetDescription("Detaches the cloth from a shape it has been attached to before. ");
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0xf4b0609,0x75b453a3));
	od->SetAuthorGuid(VTCX_AUTHOR_GUID);
	od->SetAuthorName(VTCX_AUTHOR);
	od->SetVersion(0x00010000);
	od->SetCreationFunction(CreatePClothDetachFromShapeProto);
	od->SetCompatibleClassId(CKCID_3DENTITY);
	od->NeedManager(GUID_MODULE_MANAGER);
	
	return od;
}
开发者ID:gbaumgart,项目名称:vt,代码行数:23,代码来源:PCDetachFromShape.cpp

示例11: CreateCKObjectDeclaration

//************************************
// Method:    FillBehaviorPVWSetDecl
// FullName:  FillBehaviorPVWSetDecl
// Access:    public
// Returns:   CKObjectDeclaration	*
// Qualifier:
//************************************
CKObjectDeclaration	*FillBehaviorPVWSetDecl()
{
	CKObjectDeclaration *od = CreateCKObjectDeclaration("PVWSet");
	od->SetCategory("Physic/Vehicle");
	od->SetDescription("Sets physical quantities.");
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x7805147,0x322e17e7));
	od->SetAuthorGuid(VTCX_AUTHOR_GUID);
	od->SetAuthorName(VTCX_AUTHOR);
	od->SetVersion(0x00010000);
	od->SetCreationFunction(CreatePVWSetProto);
	od->SetCompatibleClassId(CKCID_3DENTITY);
	od->NeedManager(GUID_MODULE_MANAGER);

	return od;
}
开发者ID:gbaumgart,项目名称:vt,代码行数:23,代码来源:PVWSet.cpp

示例12: CreateCKObjectDeclaration

//************************************
// Method:    FillBehaviorPJRevoluteDecl
// FullName:  FillBehaviorPJRevoluteDecl
// Access:    public
// Returns:   CKObjectDeclaration	*
// Qualifier:
//************************************
CKObjectDeclaration	*FillBehaviorPJRevoluteDecl()
{
    CKObjectDeclaration *od = CreateCKObjectDeclaration("PJRevolute");
    od->SetCategory("Physic/Joints");
    od->SetDescription("Sets/modifies a revolute joint.");
    od->SetType( CKDLL_BEHAVIORPROTOTYPE);
    od->SetGuid(CKGUID(0x77cb361c,0x670112a9));
    od->SetAuthorGuid(VTCX_AUTHOR_GUID);
    od->SetAuthorName(VTCX_AUTHOR);
    od->SetVersion(0x00010000);
    od->SetCreationFunction(CreatePJRevoluteProto);
    od->SetCompatibleClassId(CKCID_3DENTITY);
    od->NeedManager(GUID_MODULE_MANAGER);

    return od;
}
开发者ID:gbaumgart,项目名称:vt,代码行数:23,代码来源:PJRevolute.cpp

示例13: CreateCKObjectDeclaration

//************************************
// Method:    FillBehaviorPClothDestroyDecl
// FullName:  FillBehaviorPClothDestroyDecl
// Access:    public 
// Returns:   CKObjectDeclaration	*
// Qualifier:
//************************************
CKObjectDeclaration	*FillBehaviorPClothDestroyDecl()
{
	CKObjectDeclaration *od = CreateCKObjectDeclaration("PClothDestroy");	
	od->SetCategory("Physic/Cloth");
	od->SetDescription("Destroys a physical cloth.");
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x8d604ec,0x2e926408));
	od->SetAuthorGuid(VTCX_AUTHOR_GUID);
	od->SetAuthorName(VTCX_AUTHOR);
	od->SetVersion(0x00010000);
	od->SetCreationFunction(CreatePClothDestroyProto);
	od->SetCompatibleClassId(CKCID_3DENTITY);
	od->NeedManager(GUID_MODULE_MANAGER);
	
	return od;
}
开发者ID:gbaumgart,项目名称:vt,代码行数:23,代码来源:PCDestroy.cpp

示例14: CreateCKObjectDeclaration

/*
 *******************************************************************
 * Function: CKObjectDeclaration *FillBehaviour( void )
 *
 * Description : As its name infers, this function describes each Building Block
 *               on a functional level : what it can be applied to, its GUID, its 
 *               creation function, etc.. 
 *		
 *
 * Paramters :
 *    None
 *
 * Returns : CKObjectDeclaration *, containing:
 *               - The type of object declaration ( Must Be CKDLL_BEHAVIORPROTOTYPE )
 *               - The function that will create the CKBehaviorPrototype for this behavior.
 *               - A short description of what the behavior is supposed to do.
 *               - The category in which this behavior will appear in the Virtools interface.
 *               - A unique CKGUID
 *               - Author and Version info
 *               - The class identifier of objects to which the behavior can be applied to.
 *
 *******************************************************************
 */
CKObjectDeclaration * CGBLLAEGetLAE::FillBehaviour( void )
{
    CKObjectDeclaration *objectDeclaration = CreateCKObjectDeclaration( "GBLLAEGetLAEBB" );	
    
    objectDeclaration->SetType( CKDLL_BEHAVIORPROTOTYPE );
    objectDeclaration->SetCreationFunction( CGBLLAEGetLAE::CreatePrototype );
    objectDeclaration->SetDescription( "Learning Application Controller" );
    objectDeclaration->SetCategory( "GBL" );
    objectDeclaration->SetGuid( CKGUID(0x72b275d0,0x6a13699e) );
    objectDeclaration->SetVersion( 0x00000001 );
    objectDeclaration->SetAuthorGuid( CKGUID( 0x56495254, 0x4f4f4c53 ) );
    objectDeclaration->SetAuthorName( "Virtools" );
    objectDeclaration->SetCompatibleClassId( CKCID_BEOBJECT );
    
    return objectDeclaration;
}
开发者ID:gbaumgart,项目名称:GBL_Backup,代码行数:39,代码来源:GBLLAEGetLAE.cpp

示例15: CreateCKObjectDeclaration

//************************************
// Method:    FillBehaviorRegisterAttributeTypeDecl
// FullName:  FillBehaviorRegisterAttributeTypeDecl
// Access:    public
// Returns:   CKObjectDeclaration	*
// Qualifier:
//************************************
CKObjectDeclaration	*FillBehaviorRegisterAttributeTypeDecl()
{
	CKObjectDeclaration *od = CreateCKObjectDeclaration("RegisterAttribute");
	od->SetCategory("Physic/Manager");
	od->SetDescription("Registers a new attribute type.");
	od->SetType( CKDLL_BEHAVIORPROTOTYPE);
	od->SetGuid(CKGUID(0x63e567c4,0x65583276));
	od->SetAuthorGuid(VTCX_AUTHOR_GUID);
	od->SetAuthorName(VTCX_AUTHOR);
	od->SetVersion(0x00010000);
	od->SetCreationFunction(CreateRegisterAttributeTypeProto);
	od->SetCompatibleClassId(CKCID_BEOBJECT);
	od->NeedManager(GUID_MODULE_MANAGER);

	return od;
}
开发者ID:gbaumgart,项目名称:vt,代码行数:23,代码来源:xRegisterAttributeType.cpp


注:本文中的CKObjectDeclaration::SetCreationFunction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。