示例#1
0
	def createAsset( self, name, contextNode, assetType ):
		filename = name + _MATERIAL_EXT
		if contextNode.isType('folder'):
			nodepath = contextNode.getChildPath( filename )
		else:
			nodepath = contextNode.getSiblingPath( filename )

		fullpath = AssetLibrary.get().getAbsPath( nodepath )
		
		_MOCK.createEmptySerialization( fullpath, 'mock.RenderMaterial' )
		return nodepath
示例#2
0
	def createAsset( self, name, contextNode, assetType ):
		filename = name + _PBODYDEF_EXT
		if contextNode.isType('folder'):
			nodepath = contextNode.getChildPath( filename )
		else:
			nodepath = contextNode.getSiblingPath( filename )

		fullpath = AssetLibrary.get().getAbsPath( nodepath )
		
		_MOCK.createEmptySerialization( fullpath, 'mock.PhysicsBodyDef' )
		return nodepath
示例#3
0
    def createAsset(self, name, contextNode, assetType):
        filename = name + _MATERIAL_EXT
        if contextNode.isType("folder"):
            nodepath = contextNode.getChildPath(filename)
        else:
            nodepath = contextNode.getSiblingPath(filename)

        fullpath = AssetLibrary.get().getAbsPath(nodepath)

        _MOCK.createEmptySerialization(fullpath, "mock.RenderMaterial")
        return nodepath
示例#4
0
    def createAsset(self, name, contextNode, assetType):
        ext = '.deck2d'
        filename = name + ext
        if contextNode.isType('folder'):
            nodepath = contextNode.getChildPath(filename)
        else:
            nodepath = contextNode.getSiblingPath(filename)

        fullpath = AssetLibrary.get().getAbsPath(nodepath)

        _MOCK.createEmptySerialization(fullpath, 'mock.Deck2DPack')
        return nodepath
示例#5
0
文件: Deck2DAsset.py 项目: pixpil/gii
	def createAsset( self, name, contextNode, assetType ):
		ext = '.deck2d'
		filename = name + ext
		if contextNode.isType('folder'):
			nodepath = contextNode.getChildPath( filename )
		else:
			nodepath = contextNode.getSiblingPath( filename )

		fullpath = AssetLibrary.get().getAbsPath( nodepath )
	
		_MOCK.createEmptySerialization( fullpath, 'mock.Deck2DPack' )
		return nodepath
示例#6
0
	def createAsset( self, name, contextNode, assetType ):
		ext = '.particle_simple'
		filename = name + ext
		if contextNode.isType('folder'):
			nodepath = contextNode.getChildPath( filename )
		else:
			nodepath = contextNode.getSiblingPath( filename )

		fullpath = AssetLibrary.get().getAbsPath( nodepath )
		
		_MOCK.createEmptySerialization( fullpath, 'mock.SimpleParticleSystemConfig' )
		return nodepath
示例#7
0
    def createAsset(self, name, contextNode, assetType):
        ext = '.particle_simple'
        filename = name + ext
        if contextNode.isType('folder'):
            nodepath = contextNode.getChildPath(filename)
        else:
            nodepath = contextNode.getSiblingPath(filename)

        fullpath = AssetLibrary.get().getAbsPath(nodepath)

        _MOCK.createEmptySerialization(fullpath,
                                       'mock.SimpleParticleSystemConfig')
        return nodepath
示例#8
0
    def createAsset(self, name, contextNode, assetType):
        ext = '.animator_data'
        filename = name + ext
        if contextNode.isType('folder'):
            nodepath = contextNode.getChildPath(filename)
        else:
            nodepath = contextNode.getSiblingPath(filename)

        fullpath = AssetLibrary.get().getAbsPath(nodepath)

        modelName = _MOCK.Model.findName('AnimatorData')
        assert (modelName)
        _MOCK.createEmptySerialization(fullpath, modelName)
        return nodepath
示例#9
0
	def createAsset( self, name, contextNode, assetType ):
		ext = '.animator_data'
		filename = name + ext
		if contextNode.isType('folder'):
			nodepath = contextNode.getChildPath( filename )
		else:
			nodepath = contextNode.getSiblingPath( filename )

		fullpath = AssetLibrary.get().getAbsPath( nodepath )

		modelName = _MOCK.Model.findName( 'AnimatorData' )
		assert( modelName )
		_MOCK.createEmptySerialization( fullpath, modelName )
		return nodepath