TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
ParticleOrchestraSettings.cs
Go to the documentation of this file.
1using System.IO;
2using Microsoft.Xna.Framework;
3
5
7{
8 public Vector2 PositionInWorld;
9
10 public Vector2 MovementVector;
11
12 public int UniqueInfoPiece;
13
15
16 public const int SerializationSize = 21;
17
18 public void Serialize(BinaryWriter writer)
19 {
20 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
21 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
22 writer.WriteVector2(PositionInWorld);
23 writer.WriteVector2(MovementVector);
24 writer.Write(UniqueInfoPiece);
25 writer.Write(IndexOfPlayerWhoInvokedThis);
26 }
27
28 public void DeserializeFrom(BinaryReader reader)
29 {
30 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
31 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
32 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
33 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
34 PositionInWorld = reader.ReadVector2();
35 MovementVector = reader.ReadVector2();
36 UniqueInfoPiece = reader.ReadInt32();
37 IndexOfPlayerWhoInvokedThis = reader.ReadByte();
38 }
39}