Campofinale/Campofinale/Resource/TableCfgResource.cs

45 lines
958 B
C#
Raw Normal View History

2025-03-09 21:07:48 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Campofinale.Resource
{
public abstract class TableCfgResource
{
2025-03-09 21:14:29 +00:00
/// <summary>
/// Not implemented yet
/// </summary>
2025-03-09 21:07:48 +00:00
public void OnLoad()
{
}
}
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class TableCfgTypeAttribute : Attribute
{
2025-03-09 21:14:29 +00:00
/// <summary>
/// Path of the Resource
/// </summary>
2025-03-09 21:07:48 +00:00
public string Name { get; }
2025-03-09 21:14:29 +00:00
/// <summary>
/// Priority of load (still not implemented)
/// </summary>
2025-03-09 21:07:48 +00:00
public LoadPriority Priority { get; }
public TableCfgTypeAttribute(string name, LoadPriority priority)
{
Name = name;
Priority = priority;
}
}
public enum LoadPriority
{
HIGH,
MEDIUM,
LOW
}
}