public PlayerData(ushort playerId, int localPlanetId, Float3 color, string username = null, Float3 localPlanetPosition = new Float3(), Double3 position = new Double3(), Float3 rotation = new Float3(), Float3 bodyRotation = new Float3()) { PlayerId = playerId; LocalPlanetId = localPlanetId; Username = username ?? $"Player {playerId}"; LocalPlanetPosition = localPlanetPosition; Color = color; UPosition = position; Rotation = rotation; BodyRotation = bodyRotation; Mecha = new MechaData(); }
public PlayerData(ushort playerId, int localPlanetId, Float3 mechaColor, string username = null, Float3 localPlanetPosition = new Float3(), Double3 position = new Double3(), Float3 rotation = new Float3(), Float3 bodyRotation = new Float3()) { PlayerId = playerId; LocalPlanetId = localPlanetId; Username = !string.IsNullOrWhiteSpace(username) ? username : $"Player {playerId}"; LocalPlanetPosition = localPlanetPosition; MechaColor = mechaColor; UPosition = position; Rotation = rotation; BodyRotation = bodyRotation; Mecha = new MechaData(); }
public PlayerData(ushort playerId, int localPlanetId, Float4[] mechaColors, string username = null, Float3 localPlanetPosition = new Float3(), Double3 position = new Double3(), Float3 rotation = new Float3(), Float3 bodyRotation = new Float3()) { PlayerId = playerId; LocalPlanetId = localPlanetId; MechaColors = mechaColors; Username = !string.IsNullOrWhiteSpace(username) ? username : $"Player {playerId}"; LocalPlanetPosition = localPlanetPosition; UPosition = position; Rotation = rotation; BodyRotation = bodyRotation; Mecha = new MechaData(); Appearance = null; DIYAppearance = null; DIYItemId = new int[0]; DIYItemValue = new int[0]; }
public PlayerData(ushort playerId, int localPlanetId, Float3 color, Float3 localPlanetPosition = new Float3(), Double3 position = new Double3(), Float3 rotation = new Float3(), Float3 bodyRotation = new Float3()) { PlayerId = playerId; LocalPlanetId = localPlanetId; LocalPlanetPosition = localPlanetPosition; Color = color; UPosition = position; Rotation = rotation; BodyRotation = bodyRotation; Mecha = new MechaData(); }
public static VectorLF3 ToVectorLF3(this Double3 value) { return(new VectorLF3(value.x, value.y, value.z)); }