feat(Database) Direct database/Throne links now work in the database. Added a Detailed/Plain view button

This commit is contained in:
2022-04-03 20:09:21 -04:00
parent 8584570a1e
commit 28087b58d9
28 changed files with 1123 additions and 296 deletions
+12 -3
View File
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model.Immortal.Entity.Data;
using Model.Immortal.Entity.Parts;
using Model.Immortal.Types;
using YamlDotNet.Serialization;
namespace Model.Immortal.Entity;
@@ -28,6 +28,13 @@ public class EntityModel {
IsSpeculative = isSpeculative;
}
public string AsYaml() {
var stringBuilder = new StringBuilder();
var serializer = new Serializer();
stringBuilder.AppendLine(serializer.Serialize(this));
return stringBuilder.ToString();
}
public string DataType { get; set; }
// TODO Serilization currently being used for build orders
@@ -71,6 +78,8 @@ public class EntityModel {
}
public static List<EntityModel> GetList() {
if (entityModels == null) entityModels = DATA.Get().Values.ToList();