mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-14 00:49:23 +00:00
qsb message: make Data field { get; private set; }
This commit is contained in:
parent
724d0c47ef
commit
d91fe3f662
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user