1 #pragma once 2 3 #include "proto/eng_tuningfork.pb.h" 4 5 namespace gameengine { 6 7 using ::com::google::tuningfork::Annotation; 8 using ::com::google::tuningfork::Settings; 9 using ::com::google::tuningfork::FidelityParams; 10 11 // If the game logic is in C++, initialize like this: 12 void init(const Settings& s, 13 const std::function<void(const FidelityParams&)>& callback ); 14 // If the game logic is not C++, we need to serialize the protobufs: 15 void init(const std::string& settings, 16 const std::function<void(const std::string&)>& callback ); 17 18 // Set the annotation directly 19 void set(const Annotation& s); 20 // Set the annotation using a serialized representation 21 void set(const std::string& s); 22 23 void tick(); 24 25 } // namespace gameengine 26