[Added] Service Expansion

Moderator: GZDoom Developers

Service Expansion

Postby Major Cooke » Fri Jul 23, 2021 1:26 pm

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.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest