qsb message: make Data field { get; private set; }

This commit is contained in:
JohnCorby 2022-03-10 17:39:00 -08:00
parent 724d0c47ef
commit d91fe3f662
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public abstract class QSBMessage
public abstract class QSBMessage<D> : QSBMessage
{
protected D Data;
protected D Data { get; private set; }
protected QSBMessage(D data) => Data = data;
public override void Serialize(NetworkWriter writer)

View File

@ -43,7 +43,7 @@ public abstract class QSBWorldObjectMessage<T> : QSBMessage where T : IWorldObje
public abstract class QSBWorldObjectMessage<T, D> : QSBWorldObjectMessage<T> where T : IWorldObject
{
protected D Data;
protected D Data { get; private set; }
protected QSBWorldObjectMessage(D data) => Data = data;
public override void Serialize(NetworkWriter writer)