Beispiel #1
0
        public override void Read(ModUpdaterNetworkStream s)
        {
            int i = s.ReadInt();

            Servers   = new string[i];
            Locations = new string[i];
            Ports     = new int[i];
            for (int j = 0; j < i; j++)
            {
                Servers[j]   = s.ReadString();
                Locations[j] = s.ReadString();
                Ports[j]     = s.ReadInt();
            }
        }
Beispiel #2
0
        public override void Read(ModUpdaterNetworkStream s)
        {
            int l = s.ReadInt();

            LogMessages = new string[l];
            for (int i = 0; i < l; i++)
            {
                LogMessages[i] = s.ReadString();
            }
        }
Beispiel #3
0
        public override void Read(ModUpdaterNetworkStream s)
        {
            Type    = (SessionType)s.ReadNetworkByte();
            Version = s.ReadString();
            switch (Type)
            {
            case SessionType.Client:
                Username = s.ReadString();
                break;

            case SessionType.Server:
                Address = s.ReadString();
                Name    = s.ReadString();
                Port    = s.ReadInt();
                break;

            case SessionType.Admin:
                Username = s.ReadString();
                break;
            }
        }
Beispiel #4
0
 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();
 }
Beispiel #5
0
        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)
 {
     Identifier = s.ReadString();
     ChunkSize = s.ReadInt();
     PostDownloadCLI = s.ReadStrings();
 }
 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 l = s.ReadInt();
     LogMessages = new string[l];
     for (int i = 0; i < l; i++)
     {
         LogMessages[i] = s.ReadString();
     }
 }
 public override void Read(ModUpdaterNetworkStream s)
 {
     Type = (ImageType)((byte)s.ReadNetworkByte()); //Stupid ReadNetworkByte().  It's in NetworkStream and thus pretty much out of my control.
     ShowOn = s.ReadString();
     Image = s.ReadBytes();
 }
Beispiel #11
0
 public override void Read(ModUpdaterNetworkStream s)
 {
     Type       = (RequestType)s.ReadNetworkByte();
     Identifier = s.ReadString();
 }
 public override void Read(ModUpdaterNetworkStream s)
 {
     int i = s.ReadInt();
     Servers = new string[i];
     Locations = new string[i];
     Ports = new int[i];
     for (int j = 0; j < i; j++)
     {
         Servers[j] = s.ReadString();
         Locations[j] = s.ReadString();
         Ports[j] = s.ReadInt();
     }
 }
Beispiel #13
0
 public override void Read(ModUpdaterNetworkStream s)
 {
     Type   = (ImageType)((byte)s.ReadNetworkByte()); //Stupid ReadNetworkByte().  It's in NetworkStream and thus pretty much out of my control.
     ShowOn = s.ReadString();
     Image  = s.ReadBytes();
 }
Beispiel #14
0
 public override void Read(ModUpdaterNetworkStream s)
 {
     Identifier = s.ReadString();
 }
Beispiel #15
0
 public override void Read(ModUpdaterNetworkStream s)
 {
     Identifier      = s.ReadString();
     ChunkSize       = s.ReadInt();
     PostDownloadCLI = s.ReadStrings();
 }
 public override void Read(ModUpdaterNetworkStream s)
 {
     Type = (RequestType)s.ReadNetworkByte();
     Identifier = s.ReadString();
 }
 public override void Read(ModUpdaterNetworkStream s)
 {
     Identifier = s.ReadString();
 }
Beispiel #18
0
 public override void Read(ModUpdaterNetworkStream s)
 {
     Identifier = s.ReadString();
     Size       = s.ReadLong();
     Parts      = s.ReadInt();
 }
 public override void Read(ModUpdaterNetworkStream s)
 {
     Identifier = s.ReadString();
     Size = s.ReadLong();
     Parts = s.ReadInt();
 }
 public override void Read(ModUpdaterNetworkStream s)
 {
     Type = (SessionType)s.ReadNetworkByte();
     Version = s.ReadString();
     switch (Type)
     {
         case SessionType.Client:
             Username = s.ReadString();
             break;
         case SessionType.Server:
             Address = s.ReadString();
             Name = s.ReadString();
             Port = s.ReadInt();
             break;
         case SessionType.Admin:
             Username = s.ReadString();
             break;
     }
 }