示例#1
0
 public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager)
 {
     return(new TextureAsset(
                _assetContentManager,
                name,
                input.GetByteArray("Data"),
                input.GetInt32("OriginalWidth"),
                input.GetInt32("OriginalHeight")));
 }
示例#2
0
        public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager)
        {
            var textureName = input.GetString("TextureName");

            return(new TilesetAsset(
                       name,
                       textureName,
                       assetManager.Get <TextureAsset>(textureName),
                       input.GetInt32("CellWidth"),
                       input.GetInt32("CellHeight")));
        }
 public static TargetPlatform GetPlatform(this IReadableSerializedAsset asset)
 {
     return((TargetPlatform)asset.GetInt32("_Platform"));
 }