// Copyright (c) Wojciech Figat. All rights reserved. using System; using FlaxEngine; namespace FlaxEditor.Content { /// /// Asset item stored in a Json format file. /// /// public class JsonAssetItem : AssetItem { /// /// Asset icon. /// protected SpriteHandle _thumbnail; /// /// Initializes a new instance of the class. /// /// The path. /// The identifier. /// Name of the resource type. public JsonAssetItem(string path, Guid id, string typeName) : base(path, typeName, ref id) { _thumbnail = Editor.Instance.Icons.Json128; } /// /// Initializes a new instance of the class. /// /// The path. /// The identifier. /// Name of the resource type. /// Asset icon. public JsonAssetItem(string path, Guid id, string typeName, SpriteHandle thumbnail) : base(path, typeName, ref id) { _thumbnail = thumbnail; } /// public override ContentItemSearchFilter SearchFilter => ContentItemSearchFilter.Json; /// public override SpriteHandle DefaultThumbnail => _thumbnail; /// protected override bool DrawShadow => false; } }