1
1
using MLAPI . NetworkingManagerComponents . Binary ;
2
2
using MLAPI . MonoBehaviours . Core ;
3
- using MLAPI . NetworkingManagerComponents . Core ;
4
- using System ;
5
3
using System . Collections . Generic ;
6
4
7
5
namespace MLAPI . Data
@@ -116,7 +114,7 @@ public bool CanClientRead(uint clientId)
116
114
/// Writes the variable to the writer
117
115
/// </summary>
118
116
/// <param name="writer">The writer to write the value to</param>
119
- public void WriteDeltaToWriter ( BitWriter writer ) => WriteFieldToWriter ( writer ) ; //The NetworkedVar is built for simple data types and has no delta.
117
+ public void WriteDelta ( BitWriter writer ) => WriteField ( writer ) ; //The NetworkedVar is built for simple data types and has no delta.
120
118
121
119
/// <inheritdoc />
122
120
public bool CanClientWrite ( uint clientId )
@@ -143,7 +141,7 @@ public bool CanClientWrite(uint clientId)
143
141
/// Reads value from the reader and applies it
144
142
/// </summary>
145
143
/// <param name="reader">The reader to read the value from</param>
146
- public void SetDeltaFromReader ( BitReader reader ) => SetFieldFromReader ( reader ) ; //The NetworkedVar is built for simple data types and has no delta.
144
+ public void ReadDelta ( BitReader reader ) => ReadField ( reader ) ; //The NetworkedVar is built for simple data types and has no delta.
147
145
148
146
/// <inheritdoc />
149
147
public void SetNetworkedBehaviour ( NetworkedBehaviour behaviour )
@@ -152,7 +150,7 @@ public void SetNetworkedBehaviour(NetworkedBehaviour behaviour)
152
150
}
153
151
154
152
/// <inheritdoc />
155
- public void SetFieldFromReader ( BitReader reader )
153
+ public void ReadField ( BitReader reader )
156
154
{
157
155
// TODO TwoTen - Boxing sucks
158
156
T previousValue = InternalValue ;
@@ -162,7 +160,7 @@ public void SetFieldFromReader(BitReader reader)
162
160
}
163
161
164
162
/// <inheritdoc />
165
- public void WriteFieldToWriter ( BitWriter writer )
163
+ public void WriteField ( BitWriter writer )
166
164
{
167
165
//TODO: Write field
168
166
}
@@ -209,22 +207,22 @@ public interface INetworkedVar
209
207
/// Writes the dirty changes, that is, the changes since the variable was last dirty, to the writer
210
208
/// </summary>
211
209
/// <param name="writer">The writer to write the dirty changes to</param>
212
- void WriteDeltaToWriter ( BitWriter writer ) ;
210
+ void WriteDelta ( BitWriter writer ) ;
213
211
/// <summary>
214
212
/// Writes the complete state of the variable to the writer
215
213
/// </summary>
216
214
/// <param name="writer">The writer to write the state to</param>
217
- void WriteFieldToWriter ( BitWriter writer ) ;
215
+ void WriteField ( BitWriter writer ) ;
218
216
/// <summary>
219
217
/// Reads the complete state from the reader and applies it
220
218
/// </summary>
221
219
/// <param name="reader">The reader to read the state from</param>
222
- void SetFieldFromReader ( BitReader reader ) ;
220
+ void ReadField ( BitReader reader ) ;
223
221
/// <summary>
224
222
/// Reads delta from the reader and applies them to the internal value
225
223
/// </summary>
226
224
/// <param name="reader">The reader to read the delta from</param>
227
- void SetDeltaFromReader ( BitReader reader ) ;
225
+ void ReadDelta ( BitReader reader ) ;
228
226
/// <summary>
229
227
/// Sets NetworkedBehaviour the container belongs to.
230
228
/// </summary>
0 commit comments