• 100.00% Rate
  • 10 Hits
  • 0 Missed
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 1x
  • 1x
  • 1x
  • 1x
  • 1x
  • 1x
  • 1x
  • 1x
  • 1x
  • 1x
  • -------------------------------------------------------------------------------
  • -- Manage PUMAS Physics
  • -- Author: Valentin Niess
  • -- License: GNU LGPL-3.0
  • -------------------------------------------------------------------------------
  • local context = require('pumas.context')
  • local physics_ = require('pumas.physics.physics')
  • local physics = {}
  • physics.build = require('pumas.physics.build')
  • physics.Physics = physics_.Physics
  • -------------------------------------------------------------------------------
  • -- Register the subpackage
  • -------------------------------------------------------------------------------
  • function physics.register_to (t)
  • t.build = physics.build
  • t.Physics = physics.Physics
  • -- Register back to context as well. This is to avoid a cross-reference
  • -- loop.
  • context._physics = physics
  • end
  • -------------------------------------------------------------------------------
  • -- Return the package
  • -------------------------------------------------------------------------------
  • return physics