Skip to content
  • This project
    • Loading...
  • Sign in

金学艇 / xhx

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • xhx
  • server
  • trunk
  • lobby
  • lobby.h
  • jinwawa's avatar
    0509 · 7b96a3da
    7b96a3da
    jinwawa authored 2019-05-09 20:22:06 +0800
lobby.h 345 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#pragma once

#include <common.h>
#include "user.h"

class user_t;

class lobby_t : public el::lib_timer_base_t
{
public:
	lobby_t();
	int init();
	void release();
	void btl(room_t* room);
	static int time_out_one_sec(void* owen, void* data);
	PET_KEY pet_key;
	PET_KEY gen_pet_key(){
		return ++(this->pet_key);
	}
};

extern lobby_t* g_lobby;