Created
October 10, 2012 16:01
-
-
Save mzgoddard/3866552 to your computer and use it in GitHub Desktop.
ActionList buffer changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// classes that are buffered | |
Action.prototype.useBuffer = false; | |
ActionList.prototype.bufferList = new ActionList | |
ActionList.prototype.store = function( Action, ... || [ Action... ] ) { | |
if ( action.useBuffer ) { | |
this.bufferList.store( action ); | |
} | |
// normal store stuff | |
} | |
// filter out old actions (eg. players leaving, no longer need player actions. ) | |
ActionList.prototype.filter = function( func( Action ):Boolean ){} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment