Map saving first pass
This commit is contained in:
12
tools/assetstool/assetcache.py
Normal file
12
tools/assetstool/assetcache.py
Normal file
@@ -0,0 +1,12 @@
|
||||
processedAssets = {}
|
||||
|
||||
def assetGetCache(assetPath):
|
||||
if assetPath in processedAssets:
|
||||
return processedAssets[assetPath]
|
||||
return None
|
||||
|
||||
def assetCache(assetPath, processedData):
|
||||
if assetPath in processedAssets:
|
||||
return processedAssets[assetPath]
|
||||
processedAssets[assetPath] = processedData
|
||||
return processedData
|
Reference in New Issue
Block a user