35 lines
945 B
C#
35 lines
945 B
C#
using OrekiWoofsBees.Common;
|
|
using ProtoBuf;
|
|
using System.Numerics;
|
|
using Vintagestory.API.MathTools;
|
|
|
|
namespace RoamingBees.Particles;
|
|
|
|
[ProtoContract]
|
|
public record struct BeeSpawnPacket
|
|
{
|
|
[ProtoMember(1)]
|
|
public required BlockPos HivePosition;
|
|
|
|
[ProtoMember(2)]
|
|
public required BeePlannedPathPointContract[] Path;
|
|
|
|
[ProtoMember(3)]
|
|
public required string Facing;
|
|
|
|
[ProtoMember(4)]
|
|
public required BeeRole Role;
|
|
|
|
[ProtoMember(5)]
|
|
public Vec3f _EntrancePosition;
|
|
|
|
[ProtoMember(6)]
|
|
public Vec3f _DespawnPosition;
|
|
|
|
public required Vector3 EntrancePosition { readonly get => _EntrancePosition.ToVector3(); set => _EntrancePosition = value.ToVec3f(); }
|
|
public required Vector3 DespawnPosition { readonly get => _DespawnPosition.ToVector3(); set => _DespawnPosition = value.ToVec3f(); }
|
|
|
|
[ProtoMember(7)]
|
|
public required long TimeElapsedSeconds;
|
|
}
|