초기커밋
This commit is contained in:
42
ServerCommon/Entity/Quest/QuestMail.cs
Normal file
42
ServerCommon/Entity/Quest/QuestMail.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ServerCore; using ServerBase;
|
||||
|
||||
namespace ServerCommon
|
||||
{
|
||||
public class QuestMail : EntityBase
|
||||
{
|
||||
public QuestMail(EntityBase parent)
|
||||
: base(EntityType.QuestMail, parent)
|
||||
{
|
||||
onInit().Wait();
|
||||
}
|
||||
|
||||
public override async Task<Result> onInit()
|
||||
{
|
||||
addEntityAttributes();
|
||||
return await base.onInit();
|
||||
}
|
||||
|
||||
private void addEntityAttributes()
|
||||
{
|
||||
var parent = getDirectParent();
|
||||
NullReferenceCheckHelper.throwIfNull(parent, () => $"parent is null !!!");
|
||||
addEntityAttribute(new QuestMailAttribute(this, parent));
|
||||
}
|
||||
|
||||
public override string toBasicString()
|
||||
{
|
||||
return $"{this.getTypeName()} - {getRootParent()?.toBasicString()}";
|
||||
}
|
||||
|
||||
public override string toSummaryString()
|
||||
{
|
||||
return $"{this.getTypeName()} - {getRootParent()?.toBasicString()}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user