Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DeviceColorProfile.cs
Go to the documentation of this file.
2using Newtonsoft.Json;
3
5
7{
9
10 [JsonProperty("R")]
11 private float RedMultiplier
12 {
13 get
14 {
15 return _multiplier.X;
16 }
17 set
18 {
19 _multiplier.X = value;
20 }
21 }
22
23 [JsonProperty("G")]
24 private float GreenMultiplier
25 {
26 get
27 {
28 return _multiplier.Y;
29 }
30 set
31 {
32 _multiplier.Y = value;
33 }
34 }
35
36 [JsonProperty("B")]
37 private float BlueMultiplier
38 {
39 get
40 {
41 return _multiplier.Z;
42 }
43 set
44 {
45 _multiplier.Z = value;
46 }
47 }
48
50 {
51 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
52 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
54 }
55
56 public DeviceColorProfile(Vector3 multiplier)
57 {
58 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
59 //IL_0008: Unknown result type (might be due to invalid IL or missing references)
60 _multiplier = multiplier;
61 }
62
63 public void Apply(ref Vector4 color)
64 {
65 color.X *= _multiplier.X;
66 color.Y *= _multiplier.Y;
67 color.Z *= _multiplier.Z;
68 }
69
70 public void Apply(ref Vector3 color)
71 {
72 color.X *= _multiplier.X;
73 color.Y *= _multiplier.Y;
74 color.Z *= _multiplier.Z;
75 }
76}