36 lines
377 B
C++
36 lines
377 B
C++
#include "precompile.h"
|
|
|
|
#include <f8/coroutine.h>
|
|
|
|
#include "player.h"
|
|
|
|
void Player::Update()
|
|
{
|
|
|
|
}
|
|
|
|
void Player::Init()
|
|
{
|
|
|
|
}
|
|
|
|
void Player::CoNet(f8::Coroutine* co)
|
|
{
|
|
co->Await(CoLogin);
|
|
co->Await(CoGame);
|
|
}
|
|
|
|
void Player::CoLogin(f8::Coroutine* co)
|
|
{
|
|
while (NetConnected()) {
|
|
|
|
}
|
|
}
|
|
|
|
void Player::CoGame(f8::Coroutine* co)
|
|
{
|
|
while (NetConnected()) {
|
|
|
|
}
|
|
}
|