42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using ServerCommon;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Numerics;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using ServerCore; using ServerBase;
|
|
|
|
namespace GameServer
|
|
{
|
|
internal class MinimapMarkerAction : EntityActionBase
|
|
{
|
|
public MinimapMarkerAction(MinimapMarker owner)
|
|
: base(owner)
|
|
{ }
|
|
|
|
public override async Task<Result> onInit()
|
|
{
|
|
await Task.CompletedTask;
|
|
|
|
var result = new Result();
|
|
|
|
return result;
|
|
}
|
|
|
|
public override void onClear()
|
|
{
|
|
return;
|
|
}
|
|
|
|
public void changeMarkerPos(Vector3 markerPos)
|
|
{
|
|
var minimap_marker_attribute = getOwner().getEntityAttribute<MinimapMarkerAttribute>();
|
|
NullReferenceCheckHelper.throwIfNull(minimap_marker_attribute, () => $"minimap_marker_attribute is null !!! - {getOwner().toBasicString()}");
|
|
|
|
minimap_marker_attribute.MarkerPos = markerPos;
|
|
minimap_marker_attribute.modifiedEntityAttribute();
|
|
}
|
|
}
|
|
}
|