blob: a2c24826f1b4f51adef54b630205da14b9b5458e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
using System;
using UnityEngine;
public class ZNetPeer : IDisposable
{
public ZRpc m_rpc;
public ISocket m_socket;
public long m_uid;
public bool m_server;
public Vector3 m_refPos = Vector3.zero;
public bool m_publicRefPos;
public ZDOID m_characterID = ZDOID.None;
public string m_playerName = "";
public ZNetPeer(ISocket socket, bool server)
{
m_socket = socket;
m_rpc = new ZRpc(m_socket);
m_server = server;
}
public void Dispose()
{
m_socket.Dispose();
m_rpc.Dispose();
}
public bool IsReady()
{
return m_uid != 0;
}
public Vector3 GetRefPos()
{
return m_refPos;
}
}
|