Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2017, 7:26:12 PM (7 years ago)
Author:
kohlia
Message:

Lua bindings should work now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController_HS17/src/orxonox/scriptablecontroller/scriptable_controller_api.cc

    r11549 r11552  
    11
    22#include "scriptable_controller_api.h"
    3 #include <chrono>
    4 #include "lua.hpp"
    53#include "luatb.h"
    64#include "scriptable_controller.h"
     
    3028void ScriptableControllerAPI::registerAfterTimeout(std::function<void (void)> callback, double timeout)
    3129{
     30    // TODO Extend timer class to accept std::function
    3231    this->controller_->registerTimeout(callback, timeout);
    3332}
     
    3534int ScriptableControllerAPI::registerAtNearObject(std::function<void (int, int)> callback, int obj1, int obj2, double distance)
    3635{
    37     orxout(user_warning) << "Working!" << std::endl;
     36
    3837}
    3938
Note: See TracChangeset for help on using the changeset viewer.