Quote:
Originally Posted by Devil_Lord2
Again, assuming I got what WhiteDragon was saying about the libraries .. unless he didn't mean for us to see them.. I would love to see and edit the basic functions too.
|
I did not mean that default functions should be overwriteable.
I meant something like
onwall accepting the
tiletype function as a parameter:
PHP Code:
temp.onwall = function (temp.tileType, temp.blockingTypes, temp.x, temp.y) {
return (temp.tileType(temp.x, temp.y) in temp.blockingTypes);
}
And likewise, other functions would accept an
onwall function for their needs, which could be the one defined above, or another one.
Anyways, this would be a
monumental amount of work and is just a pipedream.
Snapping back to reality, it is important for overriding, prototypes, and closures to be implemented.
I'd like to see some attention be given to these 3 things, because it would let the developers 'fix' a lot of problems with the default stuff without involving Stefan or rewriting everything from scratch.