Commit Graph

168 Commits

Author SHA1 Message Date
hughowens
e5f3f1f928 Update references to "Mono" menu item to "Dotnet"
Update references to "Mono" menu item to "Dotnet" in the text of the C Sharp Basics tutorial to match the actual menus as of Godot 4 RC5
2023-02-25 14:27:05 -08:00
Raul Santos
4fc468e2e9 Apply suggestions from code review
Co-authored-by: RedworkDE <10944644+RedworkDE@users.noreply.github.com>
2023-02-21 19:39:29 +01:00
RedworkDE
4d78c82027 Rename page mono->dotnet, Doc build_assemblies args, Note about mono, Reviews, Fixes 2023-02-20 12:28:56 +01:00
Raul Santos
7f35d9b38e Update tutorials/scripting/c_sharp/c_sharp_collections.rst
Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-13 21:24:40 +01:00
Raul Santos
c403465613 Add C# collections documentation page
- Move documentation of the Godot C# collection types to a dedicated page.
- Document the differences between .NET collections and Godot collections.
- Help users choose which type of collection to use in C#.
2023-02-13 21:24:39 +01:00
Max Hilbrunner
0464ade11c Merge pull request #6761 from Piralein/warnings
Update Invalid References
2023-02-12 18:34:53 +01:00
Raul Santos
62266a1634 Update C# exports documentation (#6746)
* Update C# exports documentation

- Node exports are supported in 4.0.
- Add documentation about exporting enums (and flag enums).
- Add more documentation about exporting collections.
- Changes to follow our style guide more closely.

---------

Co-authored-by: Hana <48352564+Piralein@users.noreply.github.com>
2023-02-12 18:31:38 +01:00
Hana
64476d96b4 update references 2023-02-10 19:13:03 +01:00
Raul Santos
5010fa0d17 Add missing differences to C# documentation (#6739)
* Add missing differences to C# documentation

- Add `NodePath` section.
- Add `RID` section.
- Update `Transform2D` section.
- Add `Transform3D` section.
- Add `Rect2i` section.
- Add `AABB` section.
- Add `Projection` section.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-08 12:44:20 +01:00
31
8a9729d900 Add C# type test example (pattern matching) (#6732)
* Add C# type test example (pattern matching)
* Connect section to "is" section, put "advanced" note back
2023-02-05 16:22:07 +03:00
31
e155194384 C#: Replace "falsy" with "false" in C# "is" doc (#6733) 2023-02-05 16:08:39 +03:00
31
ec045a4342 Lowercase titles for C# exports and signals pages 2023-02-04 16:08:57 -08:00
Raul Santos
7c014cfce6 Document Signal and Callable types in C# differences page (#6722) 2023-02-04 21:29:09 +03:00
Yuri Sizov
39ba707179 Merge pull request #6730 from raulsntos/dotnet/variant
Add a dedicated page about the C# Variant type
2023-02-04 20:37:54 +03:00
Raul Santos
1a118aed3a Apply suggestions from code review
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-02-04 18:08:54 +01:00
Raul Santos
e9389ccbe6 Add a dedicated page about the C# Variant type 2023-02-04 18:08:22 +01:00
Yuri Sizov
6d5adf61a8 Merge pull request #6677 from raulsntos/dotnet/array-docs
C#: Add table with equivalent Array methods
2023-02-04 19:56:16 +03:00
Raul Santos
84d7a0f8d8 C#: Add table with equivalent Array methods 2023-02-04 17:49:11 +01:00
Raul Santos
d7f4e6b607 C#: Add table with equivalent GlobalScope methods 2023-02-04 17:07:39 +01:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* Update some C# examples

- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +01:00
Paul Joannon
ebdd928c06 C# signal delegates must be public 2023-01-30 10:27:03 +01:00
Matthew
e37fcde0af Merge pull request #6691 from paulloz/csharp/cs1612-and-basics-page-updates
Updates to C# basics (prerequisites / setup + start common errors section)
2023-01-28 18:20:14 -05:00
Paul Joannon
16d09985cd Updates to C# basics + explain CS1612
- Replace mentions to Mono with mentions to .NET 6
- Update prerequisites / setup instructions
- Update 'attach script' image
- Fix code guidelines
- Add a 'common errors' section with an explanation about CS1612
2023-01-28 22:37:44 +01:00
Yuri Sizov
da6dad7b18 Merge pull request #6678 from raulsntos/dotnet/quaternion-docs
C#: Remove outdated Quaternion documentation
2023-01-28 23:51:29 +03:00
Raul Santos
db63931309 C#: Add table with equivalent Dictionary methods (#6676) 2023-01-28 23:45:41 +03:00
Raul Santos
831dc13e1f C#: Remove outdated Quaternion documentation 2023-01-28 21:43:45 +01:00
Yuri Sizov
e2df72255a Merge pull request #6680 from raulsntos/dotnet/plane-docs
C#: Remove Plane section from C# differences page
2023-01-28 22:45:21 +03:00
Raul Santos
17ca353ae6 Add Color section to C# differences page 2023-01-28 18:43:29 +01:00
Raul Santos
55dd91b1e6 Update some of the C# documentation for 4.0 (#6681)
* Update C# documentation for 4.0

---------

Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2023-01-28 01:17:38 +01:00
Raul Santos
ebd89d2569 C#: Add TOOLS define and remove custom features
- The `TOOLS` define wasn't documented anywhere.
- Add `GODOT_REAL_T_IS_DOUBLE` define to the list.
- Custom features as defines were removed and are no longer added.
2023-01-27 18:14:11 +01:00
Raul Santos
171cfc9a85 C#: Remove Plane section from C# differences page 2023-01-27 03:16:33 +01:00
Max Hilbrunner
0c18a7cb67 Merge pull request #6643 from paulloz/csharp/signals
Create a dedicated "C# Signals" page
2023-01-23 19:22:15 +01:00
Paul Joannon
3347df2edb Create a dedicated "C# Signals" page 2023-01-22 17:37:29 +01:00
Vince Nguyen
c8f45094b5 Removed outdated documentation 2023-01-21 21:24:51 -08:00
Paul Joannon
d70bc1b691 Document export grouping in C# (#6621)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-01-17 02:45:47 +01:00
Paul Joannon
ac22d6e537 Update & fix C# blocks under tutorials/scripting/
- `_Process` and `_PhysicsProcess` take their delta argument as a `double`
- Use string interpolation instead of concatenating strings
- Use `string` instead of `String` (`using System` was removed from everywhere in a previous PR)
- Use `System.Array.Empty<T>()` to init empty arrays
- Use `SignalName.*` instead of `nameof(*)` for signals
- Do not use `event` as an argument name (that's a keyword)
- Match node paths to screenshots when retrieving nodes from the tree
- Add a C# example for scene unique nodes
- Update the "Cross language scripting" page
- Add a note about using `is` against `null`
2023-01-13 20:41:23 +01:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Simo-1234
e5f4132e16 Error in the C# style guide
There was written tertiary operator instead of ternary
2022-12-31 11:33:37 +01:00
roookeee
2b9d539ed2 C#: Avoid accessing expensive properties of Godot C# objects multiple times if possible (#6408)
Co-authored-by: Nico Heller <nheller@uni-bremen.de>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-12-16 13:39:04 +01:00
Raul Santos
72b626cf65 C#: Add table with equivalent string methods
Adds a table with the list of methods C# methods that are equivalent to
the methods in Godot's String (including links to Microsoft's
documentation and alternative APIs to consider).
2022-12-01 05:49:26 +01:00
Max Hilbrunner
99d3d0be12 Renames / fixes for Godot 4 2022-10-17 00:35:07 +02:00
Max Hilbrunner
198393eec7 More Godot 4 rename fixes (#6315)
* Spatial -> 3D, Transform, Quaternion

* File -> FileAccess

* Camera -> Camera3D

* Update references to MeshInstance and MultiMeshInstance

* ImmediateGeometry -> ImmediateMesh, misc renames
2022-10-15 20:54:47 +02:00
Raul Santos
3b36a94d35 Update C# signal documentation
Updates C# signal documentation and code examples to the new API in 4.0
2022-08-26 15:59:43 +02:00
luz paz
04f66dc5d0 Fix various typos
Found via `codespell -q 3 -S ./LICENSE.txt,./tutorials/i18n,./_tools/codespell-ignore-lines.txt -L doubleclick,findn,lod,inout,nd,raison,te` and other means
2022-07-28 10:35:04 -04:00
Max Hilbrunner
420ed2739f Merge pull request #5985 from 31/dev/31/winbugs
Add notes for common C# bugs on Windows
2022-07-27 02:54:00 +02:00
Max Hilbrunner
3f00b445e6 Merge pull request #5983 from 31/dev/31/cli
Add "dotnet CLI" option to all C# editor docs
2022-07-26 00:40:05 +02:00
31
b8c3411a40 Add notes for common C# bugs on Windows 2022-07-24 21:04:45 -07:00
31
b3296f0573 Remove "Core" from .NET SDK, simplify Mono mention 2022-07-24 17:55:10 -07:00
31
5f60723cd4 Add "dotnet CLI" option to all C# editor docs 2022-07-24 16:03:24 -07:00
Matthew
d17c415009 Update and improve VS Code setup instructions (#5501)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-01-08 00:06:25 +01:00