초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace UGQDatabase.Models;
public class TextEntity
{
public string Kr { get; set; } = string.Empty;
public string En { get; set; } = string.Empty;
public string Jp { get; set; } = string.Empty;
}
public enum DialogTalker
{
Player = 0,
Npc = 1,
}
public class DialogSequenceActionEntity
{
[BsonRepresentation(BsonType.String)]
public DialogTalker Talker { get; set; }
public int Type { get; set; }
public TextEntity Talk { get; set; } = new TextEntity();
public int Condition { get; set; }
public int ConditionValue { get; set; }
public int NextSequence { get; set; }
public int NpcAction { get; set; }
}
public class DialogSequenceEntity
{
public int SequenceId { get; set; }
public List<DialogSequenceActionEntity> Actions { get; set; } = new();
}
public class QuestDialogEntity
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = null!;
public List<DialogSequenceEntity> Sequences { get; set; } = new();
[BsonRequired]
public DateTime CreatedAt { get; set; }
[BsonRequired]
public DateTime UpdatedAt { get; set; }
}