Service Expansion

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8192
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Service Expansion

Post by Major Cooke »

Pull Request

One of my main concerns with Service is that currently, you can only pass in strings - which means translating to/from other variables. This could slow performance if the functions are called rapidly and often, so this expands and adds new functions to service, allowing passage of ints/doubles/objects directly.

With this PR, examples like constructing custom functions and performing damage calculations outside of player actors is possible, in addition to passing in objects for storing, retrieval or removal based on arguments - allowing for defining of functions real time without needing them to be actually defined. This maximizes the potential of Service without resorting to nasty workarounds that will for sure slow the game down. No more thinkeriterators for finding a specific actor or thinker - passing them in directly means we can be done with that.

Return to “Closed Feature Suggestions [GZDoom]”