Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetLastValue()

void Microsoft.Xna.Framework.Graphics.EffectParameter.SetLastValue ( )
inlinepackage

Definition at line 94 of file EffectParameter.cs.

95 {
96 object obj = savedValue;
97 if (obj == null)
98 {
99 return;
100 }
101 if (obj is float[] value)
102 {
104 savedValue = null;
105 return;
106 }
107 if (obj is string value2)
108 {
109 SetValue(value2);
110 savedValue = null;
111 return;
112 }
113 if (obj is Texture value3)
114 {
115 SetValue(value3);
116 return;
117 }
118 savedValue = null;
119 throw new NotSupportedException();
120 }

References System.obj, Microsoft.Xna.Framework.Graphics.EffectParameter.savedValue, Microsoft.Xna.Framework.Graphics.EffectParameter.SetValue(), and System.value.

Referenced by Microsoft.Xna.Framework.Graphics.EffectParameter.UpdateHandle().