supabase-community / godot-engine.supabase

A lightweight addon which integrates Supabase APIs for Godot Engine out of the box.
MIT License
171 stars 19 forks source link

Snippets & Examples #63

Open brwxisme opened 1 year ago

brwxisme commented 1 year ago

Improve documentation

Link

Describe the problem

cant run most of them with Godot 4.0.2

Describe the improvement

A clear and concise description of the improvement.

Additional context

Add any other context or screenshots that help clarify your question.

fenix-hub commented 1 year ago

Thanks for pointing out. Currently those snippets and examples are for Godot 3.x Will make sure to port them to godot 4.

brwxisme commented 1 year ago

can i contribute to wiki? and how ?

fenix-hub commented 1 year ago

Sure you can. You may clone the repository/wiki and work on your own, pushing the changes to your fork/clone. Then open an issue here giving me the link of your version of the wiki, so I can take your changes.

brwxisme commented 1 year ago

ok, btw is can i do Realtimechannel like "from pepega_table where emote_type = 1" ?

Giobar97 commented 1 year ago

For those who are waiting for wiki to be updated, you can take this example meantime:

Instead of Supabase.auth.connect("signed_in", self, "_on_signed_in") use this for Godot 4.x: Supabase.auth.signed_in.connect(_on_signed_in)

This change is valid for every snippet in the wiki, just change names accordingly. Basically you will call "connect" method on supabase signal, while you pass as parameter your own function to run when the signal is received. There's no need to reference to self anymore.