public VehicleColorChange(int index, NitroxId id, NitroxVector3 hsb, NitroxColor color)
 {
     Id    = id;
     Index = index;
     HSB   = hsb;
     Color = color;
 }
Esempio n. 2
0
 public VehicleColorChange(int index, NitroxId parentId, NitroxId vehicleId, NitroxVector3 hsb, NitroxColor color)
 {
     ParentId  = Optional.OfNullable(parentId);
     VehicleId = vehicleId;
     Index     = index;
     HSB       = hsb;
     Color     = color;
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 public static Color ToUnity(this NitroxColor v)
 {
     return(new Color(v.R, v.G, v.B, v.A));
 }
Esempio n. 5
0
 public PlayerSettings(NitroxColor playerColor)
 {
     PlayerColor = playerColor;
 }