public void Deserialize(BinaryReader reader) { link = new TID(); link.Deserialize(reader); to = new TID(); to.Deserialize(reader); }
public void Deserialize(BinaryReader reader) { fromEnv = new TID(); fromEnv.Deserialize(reader); toEnv = new TID(); toEnv.Deserialize(reader); sameThreadDirect = reader.ReadBoolean(); bufferSize = reader.ReadInt32(); }
public override void Deserialize(BinaryReader reader) { base.Deserialize(reader); name = StringAtom.FromReader(reader); maxPlayerNum = reader.ReadInt32(); int len_teams = reader.ReadInt32(); teams = new STeam[len_teams]; for (int i_teams = 0; i_teams < len_teams; ++i_teams) { teams[i_teams] = new STeam(); teams[i_teams].Deserialize(reader); } int len_campRelations = reader.ReadInt32(); campRelations = new SCampRelation[len_campRelations]; for (int i_campRelations = 0; i_campRelations < len_campRelations; ++i_campRelations) { campRelations[i_campRelations] = new SCampRelation(); campRelations[i_campRelations].Deserialize(reader); } int len_configs = reader.ReadInt32(); configs = new Dictionary <TID, SModConfig>(); for (int i_configs = 0; i_configs < len_configs; ++i_configs) { TID key = new TID(); key.Deserialize(reader); SModConfig val = new SModConfig(); val.Deserialize(reader); configs.Add(key, val); } spawnVehicleNum = reader.ReadInt32(); }
public override void Deserialize(BinaryReader reader) { base.Deserialize(reader); name = StringAtom.FromReader(reader); startNow = reader.ReadBoolean(); timeMode = (ETimeMode)reader.ReadInt16(); updateTick = reader.ReadInt32(); fixedUpdateTick = reader.ReadInt32(); sleepMinTick = reader.ReadInt32(); minUid = reader.ReadInt32(); runInThread = reader.ReadBoolean(); int len_services = reader.ReadInt32(); services = new TID[len_services]; for (int i_services = 0; i_services < len_services; ++i_services) { services[i_services] = new TID(); services[i_services].Deserialize(reader); } proxyMode = reader.ReadBoolean(); proxyNetEnv = new TID(); proxyNetEnv.Deserialize(reader); proxyApp = new TID(); proxyApp.Deserialize(reader); }