UGDK
|
00001 #ifndef MODULE_PROXY_OBSERVER_H_ 00002 #define MODULE_PROXY_OBSERVER_H_ 00003 00004 #include <ugdk/script/virtualobj.h> 00005 #include <ugdk/action/observer.h> 00006 #include <ugdk/script/baseproxy.h> 00007 00008 namespace ugdk { 00009 namespace action { 00010 00011 class ObserverProxy; 00012 00013 class ObserverProxy : public Observer, public ugdk::script::BaseProxy<ObserverProxy> { 00014 public: 00015 ObserverProxy(const ugdk::script::VirtualObj& proxy) : ugdk::script::BaseProxy<ObserverProxy>(proxy) {} 00016 00017 virtual void Tick() { 00018 ( proxy_ | "Tick" )(); 00019 } 00020 00021 }; 00022 00023 } 00024 } 00025 #endif