using System; namespace ET { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public class DataTableMethodAttribute: BaseAttribute { } public static class GlobalMethod { [DataTableMethod] public static void StartMainStoryNormalBattle(string[] args) { Log.Info("普通主线战斗"); } [DataTableMethod] public static void StartMainStoryEliteBattle(string[] args) { Log.Info("精英主线战斗"); } [DataTableMethod] public static void StartMainStoryBossBattle(string[] args) { Log.Info("boss主线战斗"); } } }