nightooi /s I'm rarely serious
DI in Asp.net core, abstract
so it's more like a collection of elements which will be extended to the controllers. Something alike to object delegation in javascript prototypes? Where the would resolve the reference into the underlaying implementation with the help of the config, and return null of not found.(unless is called, which would throw instead)
10 replies
Looking to not include the ground in my racing game to collide and trigger the event for FMOD
id say its impossible to do from here since this only defines the eventhandler after the event has already triggered. You'd want to check how you define collisions and detach the eventhandler for a collision with the ground... unless the collision variable contains some eventargs for what collision triggered the event the only way for you to not respond here is to check whether the relativeVelocity is equal to the current velocity of the car itself? (the relative velocity to the ground at the moment of collision would be equal to current velocity, since it's standing still, but then this also triggers whenever a player is going dubble your speed and hits you so bad case...) I'd check a layer up or send more information with the event.
3 replies
✅ What's a good strategy to load serverside resources into your controller?
But yeah this is what i didn't really understand i suppose, they get served with the request, meaning i just run strings in the model itself and alter the relative path
10 replies
✅ What's a good strategy to load serverside resources into your controller?
I've got some models that are coupled to views the idea is to eventually start implementing some client cookies which would tell the controller via request how the enduser is browsing the site which would alter the resources in the model
10 replies
✅ Takewhile in foreach iterator exiting without iterating over the elements.
thinks me gets it, you have to iterate over the dictionary first? or it Dict.Keys will return a firstordefault value where the takewhile will be applied to the first string..
4 replies
✅ Possible bug in ternary operator when incrementing in razorpages?
ahaha, got bit in the ass by the assignment ordering . I don't want too keep nesting, this is just the start of the component and its already starting to become a nightmare, thank you! c:
6 replies
is there a override for when a given type is being instanced as an array?
I'd agree but in this case its a model for a view the viewmodel has some taghelpers that are dependent on a complex type in the composite model which I is a array... Okey im an idiot. I just need a constructor for the consumer and run the sorting in the constructor, good enough in this case. Thinking is hard
6 replies