HoverRace  2.0
ConfigPeer.h
Go to the documentation of this file.
1 
2 // ConfigPeer.h
3 //
4 // Copyright (c) 2010, 2014-2016 Michael Imamura.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 
22 #pragma once
23 
24 #include <luabind/luabind.hpp>
25 #include <luabind/object.hpp>
26 
27 #include "../../../engine/Script/Peer.h"
28 
29 namespace HoverRace {
30  namespace Script {
31  class Core;
32  }
33 }
34 
35 namespace HoverRace {
36 namespace Client {
37 namespace HoverScript {
38 
43 class ConfigPeer : public Script::Peer
44 {
46 
47 public:
48  ConfigPeer(Script::Core &scripting);
49  virtual ~ConfigPeer() { }
50 
51 public:
52  static void Register(Script::Core &scripting);
53 
54 public:
55  void LUnlink();
56 
57  void LGetVideoRes();
58  void LSetVideoRes(int w, int h);
59 
60  bool LIsProfiling() const;
61  void LSetProfiling(bool profiling);
62 
63  bool LIsStackedSplitscreen() const;
64  void LSetStackedSplitscreen(bool stacked);
65 };
66 
67 } // namespace HoverScript
68 } // namespace Client
69 } // namespace HoverRace
virtual ~ConfigPeer()
Definition: ConfigPeer.h:49
Scripting peer for access to the game configuration.
Definition: ConfigPeer.h:43
Base class for script peers.
Definition: Peer.h:47
Definition: Announcement.h:24
A script environment.
Definition: Core.h:66