public override bool Init()
{
var attr = this.GetType().GetCustomAttribute<DungeonScriptAttribute>();
if (attr == null)
{
Log.Error("DungeonScript.Init: Missing DungeonScript attribute.");
return false;
}
this.Name = attr.Name;
this.Load();
ChannelServer.Instance.ScriptManager.DungeonScripts.Add(this.Name, this);
return true;
}