public override void Read(ModUpdaterNetworkStream s) { Author = s.ReadString(); ModName = s.ReadString(); File = s.ReadString(); Hash = s.ReadString(); FileSize = s.ReadLong(); Description = s.ReadString(); Identifier = s.ReadString(); Optional = s.ReadBoolean(); Requires = s.ReadStrings(); }
public override void Read(ModUpdaterNetworkStream s) { int i = s.ReadInt(); int j = s.ReadInt(); int k = s.ReadInt(); int l = s.ReadInt(); SData = new string[i]; IData = new int[j]; FData = new float[k]; if (i > 0) { for (int h = 0; h < i; h++) { SData[h] = s.ReadString(); } } if (j > 0) { for (int h = 0; h < j; h++) { IData[h] = s.ReadInt(); } } if (k > 0) { for (int h = 0; h < k; h++) { FData[h] = s.ReadFloat(); } } if (l > 0) { for (int h = 0; h < k; h++) { BData[h] = s.ReadBoolean(); } } }
public override void Read(ModUpdaterNetworkStream s) { int i = s.ReadInt(); int j = s.ReadInt(); int k = s.ReadInt(); int l = s.ReadInt(); SData = new string[i]; IData = new int[j]; FData = new float[k]; if (i > 0) for (int h = 0; h < i; h++) { SData[h] = s.ReadString(); } if (j > 0) for (int h = 0; h < j; h++) { IData[h] = s.ReadInt(); } if (k > 0) for (int h = 0; h < k; h++) { FData[h] = s.ReadFloat(); } if (l > 0) for (int h = 0; h < k; h++) { BData[h] = s.ReadBoolean(); } }
public override void Read(ModUpdaterNetworkStream s) { Encrypt = s.ReadBoolean(); EncryptionKey = s.ReadBytes(); EncryptionIV = s.ReadBytes(); }