public VehicleColorChange(int index, NitroxId id, NitroxVector3 hsb, NitroxColor color) { Id = id; Index = index; HSB = hsb; Color = color; }
public VehicleColorChange(int index, NitroxId parentId, NitroxId vehicleId, NitroxVector3 hsb, NitroxColor color) { ParentId = Optional.OfNullable(parentId); VehicleId = vehicleId; Index = index; HSB = hsb; Color = color; }
public static NitroxColor[] ToDto(this Color[] v) { NitroxColor[] result = new NitroxColor[v.Length]; for (int i = 0; i < v.Length; i++) { result[i] = v[i].ToDto(); } return(result); }
public static Color ToUnity(this NitroxColor v) { return(new Color(v.R, v.G, v.B, v.A)); }
public PlayerSettings(NitroxColor playerColor) { PlayerColor = playerColor; }