public static user_snapshot UnPack(ByteArray reader) { user_snapshot tbl = new user_snapshot(); tbl.uid = reader.ReadInt32(); return(tbl); }
public object UserLoginSucceedAck(byte[] data) { Proto.ByteArray ba = new Proto.ByteArray(data); Proto.user_snapshot snapshot = Proto.user_snapshot.UnPack(ba); ba.Dispose(); return(snapshot.uid); }
// 游客信息 public object UserLoginSucceedAck(byte[] data) { Proto.ByteArray ba = new Proto.ByteArray(data); Proto.user_snapshot snapshot = Proto.user_snapshot.UnPack(ba); ba.Dispose(); Debug.Log("Welcome userid: " + snapshot.uid); return(null); }
public static user_snapshot UnPack(ByteArray reader) { user_snapshot tbl = new user_snapshot(); tbl.uid = reader.ReadInt32(); return tbl; }