34 lines
546 B
C#
34 lines
546 B
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
using Ragon.Common;
|
|
|
|
namespace Ragon.Core;
|
|
|
|
public class EntityState
|
|
{
|
|
public bool isDirty { get; private set; }
|
|
public RagonAuthority Authority { get; private set; }
|
|
|
|
public byte[] Data
|
|
{
|
|
get => _data;
|
|
set
|
|
{
|
|
_data = value;
|
|
isDirty = true;
|
|
}
|
|
}
|
|
|
|
private byte[] _data = Array.Empty<byte>();
|
|
|
|
public EntityState(RagonAuthority ragonAuthority)
|
|
{
|
|
Authority = ragonAuthority;
|
|
isDirty = true;
|
|
}
|
|
|
|
public void Clear()
|
|
{
|
|
isDirty = true;
|
|
}
|
|
} |