Let's say I have a constructed struct with a non-static function that I then change from outside that struct. How can I think refer to variables or functions in the struct? I've tried both of the following without success:
hexGrid.GetMoveCost = function(_coords){
return Get(_coords);
}
hexGrid.GetMoveCost = function(_coords){
return self.Get(_coords);
}