diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2019-07-28 17:43:40 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2019-07-28 17:49:22 -0400 |
commit | 7dbbb5eac7a2a64066b0acd9b0cf7c8800f9c809 (patch) | |
tree | 13a14b9ef200eae8893ac9243ed6e6c0fa25e225 /modules/mono/glue/Managed/Files/Vector3.cs | |
parent | becbb7b525e1cc9bf1520a0ac94b9e9f799f6169 (diff) |
[Mono] Deprecate Set methods
These silently fail, so they should be removed. I accidentally added most of these last year, trying to make everything else consistent with Quat, sorry!
Also, a few tiny nitpicking changes are included, like whitespace and misspellings.
Diffstat (limited to 'modules/mono/glue/Managed/Files/Vector3.cs')
-rw-r--r-- | modules/mono/glue/Managed/Files/Vector3.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/Vector3.cs b/modules/mono/glue/Managed/Files/Vector3.cs index 16803ae55c..68601da1e7 100644 --- a/modules/mono/glue/Managed/Files/Vector3.cs +++ b/modules/mono/glue/Managed/Files/Vector3.cs @@ -248,12 +248,14 @@ namespace Godot return new Basis(axis, phi).Xform(this); } + [Obsolete("Set is deprecated. Use the Vector3(" + nameof(real_t) + ", " + nameof(real_t) + ", " + nameof(real_t) + ") constructor instead.", error: true)] public void Set(real_t x, real_t y, real_t z) { this.x = x; this.y = y; this.z = z; } + [Obsolete("Set is deprecated. Use the Vector3(" + nameof(Vector3) + ") constructor instead.", error: true)] public void Set(Vector3 v) { x = v.x; |