#include "interfacegats.h" #include "smlnode.h" #include "gamestate.h" #include "smlrendererhtml.h" #include #include #include #include #include using namespace Bu; PluginInterface3( plugin_interface_gats, gats, InterfaceGats, Interface, "Mike Buland", 1, 0 ); InterfaceGats::InterfaceGats() { } InterfaceGats::~InterfaceGats() { } void InterfaceGats::run( class Game *pGame ) { GameState gs( pGame, this ); { Gats::GatsStream gsIn( sioRaw ); Gats::Object *pObj = gsIn.readObject(); if( pObj ) { gs.fromGats( dynamic_cast(pObj) ); delete pObj; } else { gs.init(); } } gs.execCommand("status"); //{ // Gats::GatsStream gs //pObj = gs.toGats(); } void InterfaceGats::display( const SmlNode *pSml ) { SmlRendererHtml rend; rend.render( sio, pSml ); }