GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
131 stars 52 forks source link

UUID extension #201

Closed arthuro555 closed 3 years ago

arthuro555 commented 3 years ago

Describe the extension

Adds expressions to generate unique IDs

Checklist

Example

It's my extensions experiments file, don't mind all the other stuff. To test that one type either uuid_v4 or uuid_ii in the preview window then the Return key.
ExtensionsWorkbench.zip

Extension file

UUID.zip

UlisesFreitas commented 3 years ago

It's interesting how to use this UUID extension? there is an example?

4ian commented 3 years ago

This extension is giving two expressions that you can use in games :) @arthuro555: there are typos/bad punctuation in the description, double check that ;) Try something like grammarly.com to find these easily. Otherwise looks ok, though I wonder if we really need to expose the increasing counter "UID" - it sounds complicated for a variable doing +1 at each call. Might be better to leave the users do that by themselves?

arthuro555 commented 3 years ago

Ah, sorry for that, I'll check.

though I wonder if we really need to expose the increasing counter "UID" - it sounds complicated for a variable doing +1 at each call. Might be better to leave the users do that by themselves?

Personally, I find it easier to have just one expression for doing that and is something used by GDevelop users currently quite often when generating IDs (though it makes the extension name a misnomer as it is a Unique ID not a Universally Unique ID).

arthuro555 commented 3 years ago

UUID.zip Ok, what about now? I think I checked everything.

Bouh commented 3 years ago

Needs a skilled humain for spot typos, however lgtm.

arthuro555 commented 3 years ago

Grammarly says everything is ok, so if everything is fine I'll go ahead and merge.