Solvedamethyst Provide some sort of event system

A more general purpose event system would be nice, probably by changing handle_events to receive not just window events.

I'd need this for asset management, where the State will be informed when an AssetSet has finished.

38 Answers

✔️Accepted Answer

Summary of what was discussed on Gitter so far:

Provide an enum, Event:

pub enum Event {
    User(String, Box<Any>),
  • Events are processed asynchronously, so you can easily do expensive work when receiving an event
  • Events are also passed to the renderer which allows creating a mesh from wherever you want

Other Answers:

Yes, here, in the future 😄

With the integration of shrev to amethyst I consider this resolved. Thanks @Rhuagh !

Related Issues:

amethyst Provide some sort of event system
Summary of what was discussed on Gitter so far: Provide an enum Event: Events are processed asynchro...
flex layout flex-layout not compatible with Angular 5.0 because of OpaqueToken
I've just had the problem it was due to using ^2.0.0-beta.10 and the incorrectly published RC versio...
flex layout Using flex-layout with Angular Universal
With the yesterday's 2.0.0-beta-4 release of angular/material2 one of the highlights of which was im...
bgfx could not load library ""
For me I made it work by coping C:\Users\%username%\AppData\Local\Android\sdk\ndk-bundle\sources\cxx...
MonoGame templates for visual studio 2019
I could not find templates for VS 2017 anywhere so that I had to install VS 2017 to get them ...
godot Expose load/import methods for use with file from user directory
What you are trying to import isn't a resource that godot recognizes Godot version: 3.0.2 Issue desc...
godot ViewportTexture: Path to node is invalid
Looks like @kaadmy is correct This works without errors: The TectureRect is using the Viewport as Vi...
godot [TRACKER] Methods, properties and signals to consider for renaming in next planned compatibility breakage
Too tedious for me but Godspeed to whoever fixes instance as instantiate where used as a verb. ...
godot LanguageServer only works with VSCode
I just tested your new changes and it seems to be working great Godot version: Godot Engine
godot some kind of try finally (or except) block for gdscript
@salvob41 in this case you can use this: @Kotzuo this does not always work since it is not determini...
godot Custom-made resource types cannot be used in export statement
Games which are data-heavy (such as RPGs) would benefit immensely from better support for user-defin...
godot Annotations in GDScript
why is gdscript's syntax being modified so heavily? it was originally designed to be simple easy to ...
godot Best way to avoid some warnings?
it's best to disable warnings and just code your game your code will be fine believe me 🥇 a develop...
godot docs Proposal: redesigning the docs for Godot 4
I'm on board :) My comments/thoughts as I come to them: Focus on documentation * Move tutorials out ...
godot match pattern and using _ as a wildcard
Given that there are a few nearly equally good ideas (IMO) I guess we might use some voting. ...
Entitas CSharp Roslyn based code generator
Wooooot! Just generated the very first time! The current code generator relies on reflection which m...
MonoGame [Todo list] Future-proofing MonoGame
Thanks to everyone's effort lately especially harry-cpp and tomspilman MonoGame is getting super clo...
godot Allow AnimationPlayer to apply all its animations to multiple Nodes
I managed to make a composite sprite animation with ease Godot version: 3.0.6 3.0.7 3.1.alpha.calino...
godot Removing a resource from a scene makes all nodes using resources to appear in the TSCN diff
I'm currently having this problem with a team This combined with #22324 makes it impossible to merge...
godot Add a way to add categories to the script variables section from GDScript
As a workaround and as the inspector respects the orders of my exported variables to categorize them...
godot Source code documentation
I disagree with @reduz on this one Godot's comments documentation is very lacking ...
raylib raylib 2.6 roadmap
[rlvk] It's been long time I want to dig into Vulkan backend but the truth is that I can't find the ...
godot Cannot import any resource from any folder other than res://
I know this is totally off topic from this issue and I promise this is the last off-topic post I'll ...
flutter unity view widget Closing unity screen and relaunching it crashes the app
I've got similar problem The unity app run the first time i launch the screen if I navigate back and...
godot docs 3D FPS tutorial mess
Joining after the battle and I see that all is well in the end and many good points were raised so t...
godot Using Viewport Texture causes "node not found" error
Just discovered that if the Viewport node is moved above the nodes that use its texture then the iss...
godot add dynamic linker support
I'll revive this thread with a proposal Let me know what you guys think about it ...
godot Add a function to find out if an instance has been freed
Can we re-open as an enhancement? This is a useful feature to have and the following code: is much m...
godot Add Array.last()
Note that we support array[-1] syntax just fine so this might be useless nowdays. ...
godot Random Number Generation class
What I'm really missing is this: var myRandom = Yes I find Godot's random number genera...
godot Animations in TileMap
This will be possible in 3.1 with the new AnimatedTexture (coming soon). Part of what was mentioned ...
godot Cross compiling windows with ubuntu fails on etc2comp build
I found the trouble: by default mingw on ubuntu works in win32 mode (which doesn't support thread) i...
godot Preserve position and size of godot's editor window between sessions.
@vnen found another cool workaround like from GDScript arranges editor window exacly as i want on ev...
bevy Source of truth for Transform data
I am personally a fan of option 1 Currently the Transform is not considered the ssot for position ro...
godot Idea: a method to force a condition to trigger only once
I disagree that a feature like that makes code more readable Imho it makes the code literally unread...
godot World_vertex_coords flag required in canvas_item shaders
@clayjohn Thanks as well for the work-around! A bit of a pity that this has been dropped from 3.2 ...
godot Abnormal texture on Android
It seems the problem is that despite the specification saying OpenGL ES 3.0 supports fully non power...
entt Call for comments: signals on component creation/destruction
I'm trying to understand why a singleton disguised as something else should be so tempting ...
godot Support writing editor plugin in C#
Looks like the docs just haven't been updated yet but I figured it out Will note down for others if ...
godot GLES2 Batching + CPUParticles2D texture + Label = Rendering issue on iOS
Just a note that this bug has an experimental fix available in the latest 3.2.2 beta Would appreciat...
godot Input events are occasionally skipped (regression from input handling changes in 3.3)
bisect from 3.2.3-stable to 3.3-stable This is the commit which introduces the problem: f725d9c To c...
entt Serialisation Question
With everything I need for the test working here's the breakdown on the issue with code to show the ...
godot Replace Collision Layer/Masks with Collision Groups
Being dependent on string values to much is in my opinion is a bad idea The current way of managing ...
minetest minetest.after lacks features (additional timer API)
@Wuzzy2 I can surely imagine something that meets your requirements but Based on my long experience ...
aframe No Alpha Channel Video Format capable working on iOS / Apple devices
Hello @javismiles Good that you have found a solution Currently using the latest versions on PC/Mac/...
armory SDK error and Code editor
Hi I need help getting started When I ran the playground example the game wouldn't run because it co...
armory Node “Gate” - Execution Error (C/HL targets)
So I found a minimal working example of the bug: I've opened an issue on the Kha repo here If it can...
godot App terminate on iOS 11 when enter to background
TEMPORARY FIX The solution in this forum post actually works for Godot as well Operating system or d...
godot Cannot use a ViewportTexture as PanoramaSky texture
Replace the following line: godot/drivers/gles3/rasterizer_scene_gles3.cpp Line 2365 in 3a5b25d glBi...
godot RichText: get_visible_line_count() returns wrong value
Did you tried waiting one idle frame before calling it? A few days ago I had a similar issue and fix...