32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
using MetaAssets;
|
|
using ServerCommon.BusinessLogDomain;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameServer
|
|
{
|
|
internal static class AddressBusinessLogHelper
|
|
{
|
|
public static AddressLogInfo toAddressLogInfo(int worldMetaId, int landMetaId, int buildingMetaId, int floor, int instanceMetaId, string myhomeGuid, string ownerGuid)
|
|
{
|
|
var address_log_info = new AddressLogInfo();
|
|
address_log_info.setAddressInfo(worldMetaId, landMetaId, buildingMetaId, floor, instanceMetaId, myhomeGuid, ownerGuid);
|
|
return address_log_info;
|
|
}
|
|
|
|
public static void setAddressInfo(this AddressLogInfo logData, int worldMetaId, int landMetaId, int buildingMetaId, int floor, int instanceMetaId, string myhomeGuid, string ownerGuid)
|
|
{
|
|
logData.WorldMetaId = worldMetaId;
|
|
logData.LandMetaId = landMetaId;
|
|
logData.BuildingMetaId = buildingMetaId;
|
|
logData.Floor = floor;
|
|
logData.InstanceMetaId = instanceMetaId;
|
|
logData.MyhomeGuid = myhomeGuid;
|
|
logData.OwnerGuid = ownerGuid;
|
|
}
|
|
}
|
|
}
|