초기커밋
This commit is contained in:
38
GameServer/Contents/GameZone/Helper/TaxiBusinessLogHelper.cs
Normal file
38
GameServer/Contents/GameZone/Helper/TaxiBusinessLogHelper.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
namespace GameServer
|
||||
{
|
||||
public static class TaxiBusinessLogHelper
|
||||
{
|
||||
public static TaxiLogInfo toTaxiLogInfo(TaxiMetaData taxiMetaData)
|
||||
{
|
||||
var taxi_log_info = new TaxiLogInfo();
|
||||
taxi_log_info.setTaxiInfo(taxiMetaData);
|
||||
return taxi_log_info;
|
||||
}
|
||||
|
||||
public static void setTaxiInfo(this TaxiLogInfo logData, TaxiMetaData taxiMetaData)
|
||||
{
|
||||
logData.TaxiMID = taxiMetaData.TaxiId;
|
||||
logData.TaxiType = taxiMetaData.Type.ToString();
|
||||
logData.Cost = taxiMetaData.UnloadingCost;
|
||||
logData.UnloadingWorldId = taxiMetaData.UnloadingWorldId;
|
||||
logData.UnloadingLandId = taxiMetaData.UnloadingLandId;
|
||||
logData.UnloadingFloor = taxiMetaData.UnloadingFloorId;
|
||||
logData.UnloadingPos.X = taxiMetaData.UnloadingPositionX;
|
||||
logData.UnloadingPos.Y = taxiMetaData.UnloadingPositionY;
|
||||
logData.UnloadingPos.Z = taxiMetaData.UnloadingPositionZ;
|
||||
logData.UnloadingPos.Angle = taxiMetaData.UnloadingRotate;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user