A simple asset class defining a 'BookPrefab' loot asset that stores a text string. It inherits from LootPrefab and is marked with AssetType metadata for editor/asset system.
using Sandbox;
namespace BrickJam;
[AssetType( Name = "BookPrefab", Extension = "book", Category = "Loot" )]
public partial class BookPrefab : LootPrefab
{
[Property] public string Text { get; set; }
}