From b5b15984cc1361837699af7bcd6d7ef926e42572 Mon Sep 17 00:00:00 2001 From: Justin T <37750742+jtieri@users.noreply.github.com> Date: Wed, 27 Nov 2019 01:18:02 -0600 Subject: [PATCH] basic layout of players Setting up some basic structure for players and sessions --- habbgo/game/model/player.go | 12 ++++++++++++ habbgo/game/service/player_service.go | 1 + 2 files changed, 13 insertions(+) create mode 100644 habbgo/game/model/player.go create mode 100644 habbgo/game/service/player_service.go diff --git a/habbgo/game/model/player.go b/habbgo/game/model/player.go new file mode 100644 index 0000000..e6532f7 --- /dev/null +++ b/habbgo/game/model/player.go @@ -0,0 +1,12 @@ +package model + +import "github.com/jtieri/HabbGo/habbgo/server" + +type Player struct { + session *server.Session + playerDetails *PlayerDetails +} + +type PlayerDetails struct { + username string +} diff --git a/habbgo/game/service/player_service.go b/habbgo/game/service/player_service.go new file mode 100644 index 0000000..6d43c33 --- /dev/null +++ b/habbgo/game/service/player_service.go @@ -0,0 +1 @@ +package service