Skip to content

Commit 85c7f5f

Browse files
committed
chore: Update some documentation, add prepare script
Add a script to allow for preparing the repo for development. Update the documentation to match.
1 parent 8b3e3da commit 85c7f5f

File tree

10 files changed

+359
-451
lines changed

10 files changed

+359
-451
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ The rest of this document helps me / you understand how to build the extension.
88

99
## Getting Started
1010

11+
Most of the following steps are now performed by the shell script at the root of the repository.
12+
So you can now run:
13+
14+
```bash
15+
./prepare.sh
16+
```
17+
18+
To prepare the repository.
19+
1120
### Updating the Dart SDK
1221

1322
The Dart SDK dynamic libraries must be downloaded before you can work with this repo. There is a Dart
@@ -32,7 +41,7 @@ header as well as the GDExtension API json file.
3241
To update to more recent versions of `godot-cpp` or GDExtension, checkout a more recent version of `godot-cpp`
3342
and generate the FFI bindings using Dart's ffigen tool.
3443

35-
From the `/src/dart` directory run:
44+
From the `/src/dart/godot_dart` directory run:
3645

3746
```bash
3847
dart run ffigen
@@ -53,7 +62,7 @@ dart ./bin/binding_generator.dart
5362
For now, this generator takes no options, but it potentially will take options in
5463
the future.
5564

56-
### Building
65+
## Building
5766

5867
Building the C++ source uses CMake. The following is the easiest way to build the required dynamic
5968
libraries needed to work with Godot Dart.

example/2d_tutorial/src/pubspec.lock

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ packages:
2121
dependency: transitive
2222
description:
2323
name: args
24-
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
24+
sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "2.5.0"
27+
version: "2.6.0"
2828
async:
2929
dependency: transitive
3030
description:
3131
name: async
32-
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
32+
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "2.11.0"
35+
version: "2.12.0"
3636
boolean_selector:
3737
dependency: transitive
3838
description:
3939
name: boolean_selector
40-
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
40+
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
4141
url: "https://pub.dev"
4242
source: hosted
43-
version: "2.1.1"
43+
version: "2.1.2"
4444
build:
4545
dependency: transitive
4646
description:
@@ -77,10 +77,10 @@ packages:
7777
dependency: "direct dev"
7878
description:
7979
name: build_runner
80-
sha256: dd09dd4e2b078992f42aac7f1a622f01882a8492fef08486b27ddde929c19f04
80+
sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d"
8181
url: "https://pub.dev"
8282
source: hosted
83-
version: "2.4.12"
83+
version: "2.4.13"
8484
build_runner_core:
8585
dependency: transitive
8686
description:
@@ -117,34 +117,34 @@ packages:
117117
dependency: transitive
118118
description:
119119
name: code_builder
120-
sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37
120+
sha256: "0ec10bf4a89e4c613960bf1e8b42c64127021740fb21640c29c909826a5eea3e"
121121
url: "https://pub.dev"
122122
source: hosted
123-
version: "4.10.0"
123+
version: "4.10.1"
124124
collection:
125125
dependency: "direct main"
126126
description:
127127
name: collection
128-
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
128+
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
129129
url: "https://pub.dev"
130130
source: hosted
131-
version: "1.19.0"
131+
version: "1.19.1"
132132
convert:
133133
dependency: transitive
134134
description:
135135
name: convert
136-
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
136+
sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68
137137
url: "https://pub.dev"
138138
source: hosted
139-
version: "3.1.1"
139+
version: "3.1.2"
140140
crypto:
141141
dependency: transitive
142142
description:
143143
name: crypto
144-
sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27
144+
sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
145145
url: "https://pub.dev"
146146
source: hosted
147-
version: "3.0.5"
147+
version: "3.0.6"
148148
dart_style:
149149
dependency: transitive
150150
description:
@@ -165,18 +165,18 @@ packages:
165165
dependency: transitive
166166
description:
167167
name: file
168-
sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
168+
sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
169169
url: "https://pub.dev"
170170
source: hosted
171-
version: "7.0.0"
171+
version: "7.0.1"
172172
fixnum:
173173
dependency: transitive
174174
description:
175175
name: fixnum
176-
sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
176+
sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be
177177
url: "https://pub.dev"
178178
source: hosted
179-
version: "1.1.0"
179+
version: "1.1.1"
180180
frontend_server_client:
181181
dependency: transitive
182182
description:
@@ -199,14 +199,14 @@ packages:
199199
path: "../../../src/dart/godot_dart"
200200
relative: true
201201
source: path
202-
version: "0.6.2"
202+
version: "0.7.0"
203203
godot_dart_build:
204204
dependency: "direct dev"
205205
description:
206206
path: "../../../src/dart/godot_dart_build"
207207
relative: true
208208
source: path
209-
version: "0.4.0"
209+
version: "0.5.0"
210210
graphs:
211211
dependency: transitive
212212
description:
@@ -227,18 +227,18 @@ packages:
227227
dependency: transitive
228228
description:
229229
name: http_parser
230-
sha256: "40f592dd352890c3b60fec1b68e786cefb9603e05ff303dbc4dda49b304ecdf4"
230+
sha256: "76d306a1c3afb33fe82e2bbacad62a61f409b5634c915fceb0d799de1a913360"
231231
url: "https://pub.dev"
232232
source: hosted
233-
version: "4.1.0"
233+
version: "4.1.1"
234234
io:
235235
dependency: transitive
236236
description:
237237
name: io
238-
sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e"
238+
sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b
239239
url: "https://pub.dev"
240240
source: hosted
241-
version: "1.0.4"
241+
version: "1.0.5"
242242
js:
243243
dependency: transitive
244244
description:
@@ -267,50 +267,50 @@ packages:
267267
dependency: transitive
268268
description:
269269
name: logging
270-
sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340"
270+
sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
271271
url: "https://pub.dev"
272272
source: hosted
273-
version: "1.2.0"
273+
version: "1.3.0"
274274
matcher:
275275
dependency: transitive
276276
description:
277277
name: matcher
278-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
278+
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
279279
url: "https://pub.dev"
280280
source: hosted
281-
version: "0.12.16+1"
281+
version: "0.12.17"
282282
meta:
283283
dependency: transitive
284284
description:
285285
name: meta
286-
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
286+
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
287287
url: "https://pub.dev"
288288
source: hosted
289-
version: "1.15.0"
289+
version: "1.16.0"
290290
mime:
291291
dependency: transitive
292292
description:
293293
name: mime
294-
sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
294+
sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
295295
url: "https://pub.dev"
296296
source: hosted
297-
version: "1.0.5"
297+
version: "2.0.0"
298298
package_config:
299299
dependency: transitive
300300
description:
301301
name: package_config
302-
sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd"
302+
sha256: "92d4488434b520a62570293fbd33bb556c7d49230791c1b4bbd973baf6d2dc67"
303303
url: "https://pub.dev"
304304
source: hosted
305-
version: "2.1.0"
305+
version: "2.1.1"
306306
path:
307307
dependency: transitive
308308
description:
309309
name: path
310-
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
310+
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
311311
url: "https://pub.dev"
312312
source: hosted
313-
version: "1.9.0"
313+
version: "1.9.1"
314314
pool:
315315
dependency: transitive
316316
description:
@@ -323,10 +323,10 @@ packages:
323323
dependency: transitive
324324
description:
325325
name: pub_semver
326-
sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
326+
sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd"
327327
url: "https://pub.dev"
328328
source: hosted
329-
version: "2.1.4"
329+
version: "2.1.5"
330330
pubspec_parse:
331331
dependency: transitive
332332
description:
@@ -347,10 +347,10 @@ packages:
347347
dependency: transitive
348348
description:
349349
name: shelf_web_socket
350-
sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611"
350+
sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67
351351
url: "https://pub.dev"
352352
source: hosted
353-
version: "2.0.0"
353+
version: "2.0.1"
354354
source_gen:
355355
dependency: transitive
356356
description:
@@ -363,18 +363,18 @@ packages:
363363
dependency: transitive
364364
description:
365365
name: source_span
366-
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
366+
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
367367
url: "https://pub.dev"
368368
source: hosted
369-
version: "1.10.0"
369+
version: "1.10.1"
370370
stack_trace:
371371
dependency: transitive
372372
description:
373373
name: stack_trace
374-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
374+
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
375375
url: "https://pub.dev"
376376
source: hosted
377-
version: "1.11.1"
377+
version: "1.12.0"
378378
stream_channel:
379379
dependency: transitive
380380
description:
@@ -395,10 +395,10 @@ packages:
395395
dependency: transitive
396396
description:
397397
name: string_scanner
398-
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
398+
sha256: "0bd04f5bb74fcd6ff0606a888a30e917af9bd52820b178eaa464beb11dca84b6"
399399
url: "https://pub.dev"
400400
source: hosted
401-
version: "1.3.0"
401+
version: "1.4.0"
402402
term_glyph:
403403
dependency: transitive
404404
description:
@@ -411,34 +411,34 @@ packages:
411411
dependency: transitive
412412
description:
413413
name: test_api
414-
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
414+
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
415415
url: "https://pub.dev"
416416
source: hosted
417-
version: "0.7.3"
417+
version: "0.7.4"
418418
timing:
419419
dependency: transitive
420420
description:
421421
name: timing
422-
sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32"
422+
sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe"
423423
url: "https://pub.dev"
424424
source: hosted
425-
version: "1.0.1"
425+
version: "1.0.2"
426426
typed_data:
427427
dependency: transitive
428428
description:
429429
name: typed_data
430-
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
430+
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
431431
url: "https://pub.dev"
432432
source: hosted
433-
version: "1.3.2"
433+
version: "1.4.0"
434434
vm_service:
435435
dependency: transitive
436436
description:
437437
name: vm_service
438-
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
438+
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
439439
url: "https://pub.dev"
440440
source: hosted
441-
version: "14.2.5"
441+
version: "14.3.1"
442442
watcher:
443443
dependency: transitive
444444
description:
@@ -451,10 +451,10 @@ packages:
451451
dependency: transitive
452452
description:
453453
name: web
454-
sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062
454+
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
455455
url: "https://pub.dev"
456456
source: hosted
457-
version: "1.0.0"
457+
version: "1.1.0"
458458
web_socket:
459459
dependency: transitive
460460
description:

example/networking-demo/src/lib/world.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class World extends Node2D {
4545

4646
@GodotRpc(mode: MultiplayerAPIRPCMode.rpcModeAnyPeer, callLocal: true)
4747
void messageRpc(String username, String data) {
48-
final newText = _messages.getText() + '$username: $data\n';
48+
final newText = '${_messages.getText()}$username: $data\n';
4949
_messages.setText(newText);
5050
}
5151

0 commit comments

Comments
 (0)