Gax
Gax
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
I was asked to use a base class for all components so that creating new components as they need is easy, since I'm only responsible for the main "flow from A to B correctly" part of it
11 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
Sadly I'm also limited to using this format by the project manager/lead, which is a whole new barrier that id need to deal with when refactoring
11 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
I'm mostly treating the wire class as both that and a base component class. Even when rewriting to fit that idea, I'd still be faced with the same issue: I still would need to figure a way to examine and find where the "beginning" of the circuit is Unless I'm having a bad case of tunnel vision I can't see how refactoring to use nodes and wires would help finding that
11 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
I have looked into them, a small amount are open source and while they use a slightly similar approach, the ones I found seem like their own implementation of it The reason I have Wire is for more easily implementing the components without having to repeat a lot of behaviour, and having the "universal" changes apply to them (like the normal flow of electricity and such) While a resistor inheriting from a wire might sound weird, all that would mean is that it would inherit the same properties like position and colors and such, while also following the basic flow that wires do, with the added change of passing less voltage through
11 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
In this case still 8 Right now you can assume if nothing consumes it like a LED or something, it would still be the same
11 replies
CC#
Created by Gax on 1/18/2024 in #help
Generating input fields for each element in an array in Blazor WASM
I've solved it by just making a class purely to serve as a "reference type array" and using it instead of just the default array, not the best solution but for my use case is good enough I guess. All it has is a private array field to store the values and an indexer which is all I need I also made an input field component that has parameters to store the reference to that object and an index representing which value to change
6 replies
CC#
Created by Gax on 1/4/2024 in #help
Rendering a razor component from a raw string
Nevermind, solved it by adding a MathJaxSettings on top of the page and replacing the <Equation/> component with standard latex text 😅
4 replies
CC#
Created by Gax on 1/4/2024 in #help
Rendering a razor component from a raw string
No description
4 replies
CC#
Created by ! 휘백 on 12/30/2023 in #help
Can this be implemented?
What would even be the use case for that
29 replies