Sha256: b5dc944804b406ea83a843590b285f441ef0469a2f27c91da0c5f7b93b06974a

Contents?: true

Size: 566 Bytes

Versions: 6

Compression:

Stored size: 566 Bytes

Contents

# This class is set in the config.  Every time the client sends it's location
# the verify method is called.  You can use this to prevent things like speed hacking.
module Example
  class TrackingHandler

    # This method must return true for the players location to be saved.
    # If you return false here, the location sent by the player will be discarded
    def verify(entity)
      #vector = entity.vector3
      #player_id = entity.id
      #entity_type = entity.entity_type
      #track_extra = entity.track_entity.track_extra
      true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
game_machine-1.0.4 games/example/lib/tracking_handler.rb
game_machine-1.0.2 games/example/lib/tracking_handler.rb
game_machine-0.0.11 games/example/lib/tracking_handler.rb
game_machine-0.0.10 games/example/lib/tracking_handler.rb
game_machine-0.0.9 games/example/lib/tracking_handler.rb
game_machine-0.0.8 games/example/lib/tracking_handler.rb