Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Yield Malware

$
0
0
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...

Yield Malware

Viewing all articles
Browse latest Browse all 903

Trending Articles