40 lines
934 B
C#
40 lines
934 B
C#
using ServerCommon;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
namespace GameServer
|
|
{
|
|
internal class Rental : EntityBase
|
|
{
|
|
public Rental(Player parent)
|
|
: base(EntityType.Rental, parent)
|
|
{
|
|
}
|
|
|
|
public override async Task<Result> onInit()
|
|
{
|
|
addEntityAttribute(new RentalAttribute(this));
|
|
addEntityAction(new RentalAction(this));
|
|
|
|
return await base.onInit();
|
|
}
|
|
|
|
public override string toBasicString()
|
|
{
|
|
return $"{this.getTypeName()}, LandMetaId:{getOriginEntityAttribute<LandAttribute>()?.LandMetaId}";
|
|
}
|
|
|
|
public override string toSummaryString()
|
|
{
|
|
return $"{this.getTypeName()}, {getEntityAttribute<LandAttribute>()?.toBasicString()}";
|
|
}
|
|
}
|
|
}
|