Adds in warps

This commit is contained in:
zontreck 2025-01-18 16:11:00 -07:00
parent e776a6bb9e
commit 737c51989b
5 changed files with 114 additions and 4 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Vintagestory.API.Server;
namespace AriasServerUtils
{
@ -24,6 +25,19 @@ namespace AriasServerUtils
public class Warp
{
public PlayerPosition Location;
public string CreatedBy;
public DateTime CreatedAt;
public static Warp Create(IServerPlayer player)
{
Warp warp = new Warp();
warp.Location = PlayerPosition.from(player.Entity);
warp.CreatedBy = player.PlayerName;
warp.CreatedAt = DateTime.Now;
return warp;
}
}
[Serializable]