A Thousand Ships
ee4396809c
[C#] Fix Encloses
failing on shared upper bound for AABB
and Rect2
2024-01-16 20:19:43 +01:00
Andy Savage
05624ddbc8
Fix incorrect Rect2
size when Transform2D
*
operator.
2023-12-23 02:39:07 +00:00
Raul Santos
7106905a5b
C#: Deprecate string extensions that will be removed in 4.x
...
- Deprecated `Length` in favor of the `string.Length` property.
- Deprecated `Insert` in favor of the existing instance method with the same signature.
- Deprecated `Erase` in favor of `StringBuilder.Remove`.
- Deprecated `ToLower` and `ToUpper` in favor of the instance methods with the same signature.
- Deprecated `BeginsWith` in favor of `string.StartsWith`.
- Deprecated `EndsWith` in favor of the instance method with the same signature.
- Deprecated `Empty` in favor of `string.IsNullOrEmpty`.
- Deprecated `OrdAt` in favor of the `string[int]` indexer.
- Deprecated `LStrip` and `RStrip` in favor of `string.TrimStart` and `string.TrimEnd`.
2022-11-28 18:23:00 +01:00
dzil123
bdcb1ff228
[3.x] Fix c# Array.Shuffle incorrect mono bindings
2022-11-04 06:22:47 -07:00
Aaron Franke
fdce2a1dfc
[3.x] C#: Add Basis Euler angle code to match 4.x core
2022-09-30 17:20:36 -05:00
Raul Santos
c9734b6ceb
Document C# RPC attributes
2022-08-06 20:55:14 +02:00
Rémi Verschelde
1b7037807f
Merge pull request #59328 from raulsntos/csharp-flag-enums-3.x
2022-08-05 19:37:29 +02:00
Raul Santos
3ec6644096
C#: Remove unused Transform2D.ScaleBasis
method
...
(cherry picked from commit a4ad1dfa51
)
2022-08-03 15:01:02 +02:00
Raul Santos
ef9e2c8ca8
Rename math 'phi' arguments to 'angle' in C#
...
(cherry picked from commit d0e586fc7e
)
2022-08-01 10:38:58 +02:00
Aaron Franke
4d6c609e50
[3.x] Fix Translated method in C# affecting the original transform
2022-07-30 11:54:19 -05:00
Rémi Verschelde
06f4a28306
Update docs links still pointing to 3.4
2022-06-29 12:03:04 +02:00
Paul Joannon
c43b8ccaaf
Fix Lerp documentation and implement RangeLerp
...
(cherry picked from commit ee95a1cb28
)
2022-06-16 20:47:40 +02:00
Rémi Verschelde
9e37599f36
Core: Rename math 'phi' arguments to 'angle'
...
(cherry picked from commit e7a58a7eb6
)
2022-05-05 15:02:46 +02:00
Igor Kordiukiewicz
6bf7e8e010
String.Capitalize() in C# now matches the behaviour of String::capitalize() in C++
...
(cherry picked from commit 6c3b6664b5
)
2022-04-13 11:43:49 +02:00
Raul Santos
862691a9f7
Support explicit values in flag properties, add C# flags support
...
- Add support for explicit values in properties using `PROPERTY_HINT_FLAGS`
that works the same way it does for enums.
- Fix enums and flags in VisualScriptEditor (it wasn't considering the
explicit value).
- Use `PROPERTY_HINT_FLAGS` for C# enums with the FlagsAttribute instead
of `PROPERTY_HINT_ENUM`.
2022-03-19 19:22:54 +01:00
Raul Santos
d4790455ba
Fix marshaling values of generic Godot Dictionary
...
(cherry picked from commit e4c40efeab
)
2022-01-19 14:04:22 +01:00
Rémi Verschelde
b197de6f5f
Fix typos with codespell
...
Using codespell 2.1.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
readded
seeked
statics
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2022-01-07 00:14:54 +01:00
Raul Santos
ffbd59572e
Various fixes to C# documentation
...
(cherry picked from commit 2deabd553f
)
2021-12-08 11:28:12 +01:00
Raul Santos
613751a742
Fix get_all_delegates method for generic classes
...
If the class is generic, we must get its generic type definition and use
it to retrieve the delegates.
2021-12-04 01:51:50 +01:00
Rémi Verschelde
c9208704de
Merge pull request #54614 from aaronfranke/3.x-math-api
2021-11-29 12:57:25 +01:00
Aaron Franke
1d8cef8236
[3.x] Backport some APIs in math structs
2021-11-27 01:19:45 -06:00
Aaron Franke
5ec0a8df5e
[3.x] Add documentation to operators for math types
2021-11-27 01:15:43 -06:00
Aaron Franke
a5543bc35e
[3.x] Warn when using the dectime method
...
dectime has been removed in the master branch (what will be Godot 4.0)
2021-09-21 10:03:42 -05:00
Aaron Franke
298e29c772
[3.x] Some more C# formatting and style fixes
2021-09-18 12:11:03 -05:00
Rémi Verschelde
bb2772d2f2
Merge pull request #52762 from magian1127/3.xTemp1
2021-09-18 14:51:07 +02:00
Magian
0263a87c8b
C#, replace the current Xform method with a * operator.
2021-09-18 20:40:08 +08:00
Rémi Verschelde
316b5dad2d
Merge pull request #52390 from raulsntos/csharp-docs-3.x
...
[3.x] Add documentation to GodotSharp
2021-09-18 01:00:03 +02:00
Raul Santos
6a7ca43297
Expose String.SimplifyPath
in C#
...
(cherry picked from commit 126b1ea149
)
2021-09-14 13:41:26 +02:00
Raul Santos
cacf3e28fd
Add documentation to GodotSharp
...
- Adds documentation to almost every class and member in `GodotSharp`
- Fixes some old documentation to more closely follow the XML comments convention
2021-09-04 20:15:53 +02:00
Rémi Verschelde
f0b37b1519
doc: Point URLs to 3.4 version of the online docs
2021-08-12 17:08:10 +02:00
Rémi Verschelde
70784f983b
Mono: Remove diagnostics incompatible with 3.x codebase
2021-08-06 12:59:17 +02:00
Raul Santos
332e31260e
Reduce C# Dictionary internal calls
...
- Implements new `KeyValuePairs` and `KeyValuePairAt` internal calls
to get the `key` and the `value` in one call.
- Caches the `DictionaryEntry` to reuse properties without repeating
internal calls.
(cherry picked from commit 2deefd938f
)
2021-08-06 11:10:04 +02:00
Raul Santos
ca32c18458
Add documentation to Dictionary in C#
...
Adds documentation to `Godot.Collections.Dictionary` in C#.
(cherry picked from commit 0669ffcd15
)
2021-08-06 11:09:56 +02:00
Raul Santos
5c206c38f9
Simplify C# print methods
...
- Extracts the parameters logic to a single method
- Simplify the handling of null parameters
(cherry picked from commit ad460cde79
)
2021-08-05 16:35:55 +02:00
Raul Santos
ecb973ab02
Use allowEmpty
parameter in Split
...
(cherry picked from commit b7a66a820b
)
2021-08-03 09:15:33 +02:00
Aaron Franke
1180256090
Add documentation to Array in C#
...
(cherry picked from commit 080f44a3b7
)
2021-07-26 13:35:52 +02:00
Raul Santos
6ea8334012
Fix documentation in StringExtensions
...
(cherry picked from commit ba99387bf3
)
2021-07-26 13:35:12 +02:00
Aaron Franke
17551fe29e
[3.x] Add a simple C# .editorconfig
2021-07-24 16:27:57 -04:00
JestemStefan
9513354f68
Added signed_angle_to for Vector3
...
Added signed_angle_to method for Vector3
Added signed_angle_to for Vector3
formatting fix...
2021-07-09 12:49:12 +02:00
Aaron Franke
85a0345d57
[3.x] Add Quat angle_to method
2021-06-18 11:00:44 -04:00
Rémi Verschelde
80e1585a6e
Style: Cleanup uses of double spaces between words
...
Or after punctuation. Tried to leave third-party stuff alone, unless it has
been heavily modified for Godot.
(cherry picked from commit c1c76850cb
)
2021-06-07 12:06:59 +02:00
kleonc
4d7f642fb3
Improve some argument names for core types
2021-04-23 15:34:24 +02:00
Rémi Verschelde
015973df04
doc: Make all tutorial links point to 3.3 branch of docs
2021-03-26 10:43:43 +01:00
Ilya Kuznetsov
cacf96962d
Added mono_unhandled_exception call to unhandled_exception hook
...
(cherry picked from commit 6061ff7ba1
)
2021-03-17 15:17:02 +01:00
Aaron Franke
b2d723b039
Add generic support to PackedScene.Instance
...
(cherry picked from commit 3f50954ced
)
2021-03-02 10:26:14 +01:00
zaevi
f94dffd2de
Fix C# string.Hash()
...
(cherry picked from commit baac70c27e
)
2021-02-02 13:30:54 +01:00
Aaron Franke
226528097e
[3.2] Backport hex_to_int/bin_to_int zero check and C# changes
2021-01-28 09:24:44 -05:00
Aaron Franke
3b10458a5d
Add HexEncode to C#
...
(cherry picked from commit 6b54d7dde1
)
2020-11-17 12:02:00 +01:00
Aaron Franke
e3419a7fe1
Add LStrip and RStrip to C# strings
...
(cherry picked from commit c89af1d433
)
2020-11-17 12:01:59 +01:00
Aaron Franke
9c83b8ed70
[3.2] Improve comments in Color documentation
2020-11-14 04:56:18 -05:00