Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Add datacontract tag.
Browse files Browse the repository at this point in the history
Language-standard naming.
  • Loading branch information
dodexahedron committed Apr 4, 2015
1 parent 1a15983 commit 5b3954c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
1 change: 1 addition & 0 deletions EssentialsPlugin/EssentialsPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.XML" />
<Reference Include="VRage, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
44 changes: 23 additions & 21 deletions EssentialsPlugin/Utility/DockingItem.cs
Original file line number Diff line number Diff line change
@@ -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; }
}
}
}

0 comments on commit 5b3954c

Please sign in to comment.