コード例 #1
0
 public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager)
 {
     return(new UserInterfaceAsset(
                name,
                input.GetString("UserInterfaceData"),
                input.GetString("UserInterfaceFormat")));
 }
コード例 #2
0
 public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager)
 {
     return(new LevelAsset(
                name,
                input.GetString("LevelData"),
                input.GetString("LevelDataFormat")));
 }
コード例 #3
0
 public async Task <IAsset> Load(string name, IReadableSerializedAsset input, IAssetManager assetManager)
 {
     return(new FontAsset(
                _assetContentManager,
                name,
                input.GetString("FontName"),
                input.GetFloat("FontSize"),
                input.GetBoolean("UseKerning"),
                input.GetFloat("Spacing"),
                input.GetByteArray("Data")));
 }
コード例 #4
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")));
        }
コード例 #5
0
 public static Type GetLoader(this IReadableSerializedAsset asset)
 {
     return(Type.GetType(asset.GetString("_Loader")));
 }