text: #include "entities_liquids_lua.hpp"
  
  #include "entities_liquids.hpp"
  #include "entity.hpp"
  #include "script/script_impl.hpp"
  
  #include <sol/sol.hpp>
  
  namespace NEntitiesLiquids
  {
  void register_usertypes(sol::state& lua, ScriptImpl* script)
  {
      lua["Entity"]["as_liquid"] = &Entity::as<Liquid>;
      lua["Entity"]["as_lava"] = &Entity::as<Lava>;
  
      lua.new_usertype<Liquid>(
          "Liquid",
          "fx_surface",
          &Liquid::fx_surface,
          sol::base_classes,
          sol::bases<Entity>());
  
      lua.new_usertype<Lava>(
          "Lava",
          "emitted_light",
          &Lava::emitted_light,
          sol::base_classes,
          sol::bases<Entity, Liquid>());
  }
  } // namespace NEntitiesLiquids
  