roygear
roygear
Here is my solution : Add below method to https://github.com/sschmid/Entitas-CSharp/blob/master/Addons/Entitas.CodeGeneration.Plugins/Entitas.CodeGeneration.Plugins/Context/CodeGenerators/ContextsGenerator.cs ```C# public static Contexts CreateNewInstance() { _sharedInstance = new Contexts(); return _sharedInstance ; } ``` Recompile ```Entitas.CodeGeneration.Plugins``` Then call this...
To reducing such boilerplate codes, my solution is write custom code generator. The code generator sample already existed in Entitas: https://github.com/sschmid/Entitas-CSharp/tree/develop/Addons/Entitas.CodeGeneration.Plugins/Entitas.CodeGeneration.Plugins
@foreverpains are you going to copy the the generated codes to other project? If yes, stop. Just copy the component classes you created to the other project, and then hit...
@VincentSai If the ListenerComponent exist in other context, how do you handle the case of `EventTarget.Self` ?
I am waiting for a proper fix too. Currently, I have a dirty fix for myself: Replace one of the below files with modules -> img2img.py Hardcode file format to...
I tried the monkey patch, but it does not work. I don't use pycharm.