public static void WriteRoleInfoProxy(uLink.BitStream stream, object obj, params object[] codecOptions) { RoleInfoProxy info = obj as RoleInfoProxy; stream.Write <ulong>(info.steamId); stream.Write <byte>(info.level); stream.Write <int>(info.winrate); stream.Write <int>(info.roleID); stream.Write <byte>(info.sex); stream.Write <string>(info.name); stream.Write <float>(info.lobbyExp); }
public static object ReadRoleInfoProxy(uLink.BitStream stream, params object[] codecOptions) { RoleInfoProxy info = new RoleInfoProxy(); info.steamId = stream.Read <ulong>(); info.level = stream.Read <byte>(); info.winrate = stream.Read <int>(); info.roleID = stream.Read <int>(); info.sex = stream.Read <byte>(); info.name = stream.Read <string>(); info.lobbyExp = stream.Read <float>(); return(info); }