public static object Read(NetPacketReader message) { return(new PositionUpdatePacket() { Position = message.GetVector3(), Orientation = message.GetQuaternion() }); }
public static SolarInfo Read(NetPacketReader message) { return(new SolarInfo { ID = message.GetInt(), Archetype = message.GetString(), Position = message.GetVector3(), Orientation = message.GetQuaternion() }); }
public static object Read(NetPacketReader message) { return(new SpawnPlayerPacket() { System = message.GetString(), Position = message.GetVector3(), Orientation = message.GetQuaternion(), Ship = NetShipLoadout.Read(message) }); }
public static object Read(NetPacketReader message) { return(new SpawnObjectPacket() { ID = message.GetInt(), Name = message.GetString(), Position = message.GetVector3(), Orientation = message.GetQuaternion(), Loadout = NetShipLoadout.Read(message) }); }
public static object Read(NetPacketReader message) { return(new SpawnDebrisPacket() { ID = message.GetInt(), Archetype = message.GetString(), Part = message.GetString(), Position = message.GetVector3(), Orientation = message.GetQuaternion(), Mass = message.GetFloat() }); }