From 5b3954cabe81853cc10251656a6757d610296fd3 Mon Sep 17 00:00:00 2001 From: dodexahedron Date: Sat, 4 Apr 2015 17:59:03 -0400 Subject: [PATCH] Add datacontract tag. Language-standard naming. --- EssentialsPlugin/EssentialsPlugin.csproj | 1 + EssentialsPlugin/Utility/DockingItem.cs | 44 +++++++++++++----------- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/EssentialsPlugin/EssentialsPlugin.csproj b/EssentialsPlugin/EssentialsPlugin.csproj index 0b0160c..55e38dc 100644 --- a/EssentialsPlugin/EssentialsPlugin.csproj +++ b/EssentialsPlugin/EssentialsPlugin.csproj @@ -230,6 +230,7 @@ + diff --git a/EssentialsPlugin/Utility/DockingItem.cs b/EssentialsPlugin/Utility/DockingItem.cs index 93d42eb..75659e2 100644 --- a/EssentialsPlugin/Utility/DockingItem.cs +++ b/EssentialsPlugin/Utility/DockingItem.cs @@ -1,58 +1,60 @@ namespace EssentialsPlugin.Utility { using System; + using System.Runtime.Serialization; using VRageMath; + [DataContract] [Serializable] public class DockingItem { - private long playerId; + private long _playerId; public long PlayerId { - get { return playerId; } - set { playerId = value; } + get { return _playerId; } + set { _playerId = value; } } - private long dockedEntityId; + private long _dockedEntityId; public long DockedEntityId { - get { return dockedEntityId; } - set { dockedEntityId = value; } + get { return _dockedEntityId; } + set { _dockedEntityId = value; } } - private long targetEntityId; + private long _targetEntityId; public long TargetEntityId { - get { return targetEntityId; } - set { targetEntityId = value; } + get { return _targetEntityId; } + set { _targetEntityId = value; } } - private long[] dockingBeaconIds; + private long[] _dockingBeaconIds; public long[] DockingBeaconIds { - get { return dockingBeaconIds; } - set { dockingBeaconIds = value; } + get { return _dockingBeaconIds; } + set { _dockingBeaconIds = value; } } - private Vector3 savePos; + private Vector3 _savePos; public Vector3 SavePos { - get { return savePos; } - set { savePos = value; } + get { return _savePos; } + set { _savePos = value; } } - private Quaternion saveQuat; + private Quaternion _saveQuat; public Quaternion SaveQuat { - get { return saveQuat; } - set { saveQuat = value; } + get { return _saveQuat; } + set { _saveQuat = value; } } - private String dockedName; + private String _dockedName; public String DockedName { - get { return dockedName; } - set { dockedName = value; } + get { return _dockedName; } + set { _dockedName = value; } } } } \ No newline at end of file