@@ -4,7 +4,7 @@ function ActionBehaviourParameters(a) {
44 }
55
66 this . args = [ ] . slice . call ( a ) ;
7- log ( this . args ) ;
7+ // log(this.args);
88}
99
1010ActionBehaviourParameters . prototype . getTile = function ( ) {
@@ -60,24 +60,24 @@ ActionBehaviourParameters.prototype.getTile = function() {
6060 tile : args [ 4 ] ,
6161 heightOffset : args [ 5 ]
6262 } ;
63- } else if ( args . length === 6 && types [ 0 ] === 'number' && types [ 1 ] === 'number' && types [ 2 ] === 'boolean' && types [ 3 ] === 'number' && args [ 4 ] === instanceof com . wurmonline . mesh . Tiles . TileBorderDirection && types [ 5 ] === 'number' ) {
63+ } else if ( args . length === 6 && types [ 0 ] === 'number' && types [ 1 ] === 'number' && types [ 2 ] === 'boolean' && types [ 3 ] === 'number' && args [ 4 ] instanceof com . wurmonline . mesh . Tiles . TileBorderDirection && types [ 5 ] === 'number' ) {
6464 return {
6565 tilex : args [ 0 ] ,
6666 tiley : args [ 1 ] ,
6767 onSurface : args [ 2 ] ,
68- heightOffset : args [ 3 ]
68+ heightOffset : args [ 3 ] ,
6969 dir : args [ 4 ] ,
7070 borderId : args [ 5 ]
7171 } ;
72- } else if ( args . length === 5 && types [ 0 ] === 'number' && types [ 1 ] === 'number' && types [ 2 ] === 'boolean' && args [ 3 ] === instanceof com . wurmonline . mesh . Tiles . TileBorderDirection && types [ 4 ] === 'number' ) {
72+ } else if ( args . length === 5 && types [ 0 ] === 'number' && types [ 1 ] === 'number' && types [ 2 ] === 'boolean' && args [ 3 ] instanceof com . wurmonline . mesh . Tiles . TileBorderDirection && types [ 4 ] === 'number' ) {
7373 return {
7474 tilex : args [ 0 ] ,
7575 tiley : args [ 1 ] ,
7676 onSurface : args [ 2 ] ,
7777 dir : args [ 3 ] ,
7878 borderId : args [ 4 ]
7979 } ;
80- } else if ( args . length === 6 && types [ 0 ] === 'number' && types [ 1 ] === 'number' && types [ 2 ] === 'boolean' && args [ 3 ] === instanceof com . wurmonline . mesh . Tiles . TileBorderDirection && types [ 4 ] === 'boolean' && types [ 5 ] === 'number' ) {
80+ } else if ( args . length === 6 && types [ 0 ] === 'number' && types [ 1 ] === 'number' && types [ 2 ] === 'boolean' && args [ 3 ] instanceof com . wurmonline . mesh . Tiles . TileBorderDirection && types [ 4 ] === 'boolean' && types [ 5 ] === 'number' ) {
8181 return {
8282 tilex : args [ 0 ] ,
8383 tiley : args [ 1 ] ,
@@ -210,7 +210,7 @@ function BehaviourParameters(a) {
210210 }
211211
212212 this . types = args . map ( function ( arg ) { return typeof arg ; } ) ;
213- log ( this . types ) ;
213+ // log(this.types);
214214}
215215BehaviourParameters . prototype = Object . create ( ActionBehaviourParameters . prototype ) ;
216216BehaviourParameters . prototype . constructor = BehaviourParameters ;
@@ -233,8 +233,14 @@ function ActionParameters(a) {
233233 }
234234
235235 this . types = args . map ( function ( arg ) { return typeof arg ; } ) ;
236- log ( this . types ) ;
236+ // log(this.types);
237237}
238238ActionParameters . prototype = Object . create ( ActionBehaviourParameters . prototype ) ;
239239ActionParameters . prototype . constructor = ActionParameters ;
240240
241+ module = ( typeof module === 'undefined' ) ? { } : module ;
242+ module . exports = {
243+ ActionParameters : ActionParameters ,
244+ BehaviourParameters : BehaviourParameters
245+ } ;
246+
0 commit comments