diff options
Diffstat (limited to 'client_conn.go')
-rw-r--r-- | client_conn.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client_conn.go b/client_conn.go index 760c6b7..4a073f6 100644 --- a/client_conn.go +++ b/client_conn.go @@ -67,6 +67,8 @@ type ClientConn struct { // Name returns the player name of the ClientConn. func (cc *ClientConn) Name() string { return cc.name } +func (cc *ClientConn) hasPlayerCAO() bool { return cc.playerCAO == 0 } + func (cc *ClientConn) server() *ServerConn { cc.mu.RLock() defer cc.mu.RUnlock() |