Quote:
Originally Posted by Viscount S
What's a "void" from your perspective?
|
Ummmm not quite sure how this is in any way on topic... but w/e.
A void is simply a function that has no return value. A function is essentially a pre-determined set of instructions and operations to be run based on various inputs. When you describe it as a "void" (I'm aware that's not REALLY the correct terminology but w/e, it's what ppl on here tend to call them), it has no return value. You can also use all other normal return values such as ints, bools and strings.... in this case it doesn't return anything to where it was called from but instead just runs it's actions (in this case, spawning monsters into the game wherever you want them)
Hopefully my explanation isn't too far off. I never had any formal education with C# so I'm sure I got some terms wrong.