blob: 2c454883acbcf0b046610b86a43c6259b8a7eda5 [file] [log] [blame]
Brian Silverman4e662aa2022-05-11 23:10:19 -07001// Copyright 2021 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9#include <iostream>
10#include "steam.h"
11
12// This is a simulation of _something like_ the way the steam API works.
13// None of this code is really from Steam.
14
15class SteamEngine : public IEngine {
16 int ConnectToGlobalUser(int user_id) {
17 std::cout << "ConnectToGlobalUser, passed " << user_id << std::endl;
18 return 42;
19 }
20 void DisconnectGlobalUser(int user_id) {
21 std::cout << "DisconnectGlobalUser, passed " << user_id << std::endl;
22 }
23};
24
25void* GetSteamEngine() {
26 return new SteamEngine();
27}
28