Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Yield Malware

Discussion in 'Programming (In-game)' started by Michael Viktor Starberg, May 30, 2019.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Michael Viktor Starberg Trainee Engineer

    Messages:
    18
    Not an anti-virus advert.

    Just wanted to say that I have revisited some of my scripts and are now using IEnumerator<GridProcessorState> to yield at update10. Have a sensor that checks if any player are near (PB also checks IsUnderControl) and only then my PB starts yielding states from an enum in an array..

    CheckGridState, GenerateManifest, CalculateWeight, CalculateEnergy, DisplayManifest, DisplayEnergy, RenameBlocks etc etc.

    Not often in C# you get to fake a message pump with a loop label with a goto and get away with it.
     
Thread Status:
This last post in this thread was made more than 31 days old.