Beispiel #1
0
		public void ReadFromStream (Stream stream)
		{
			for (int i = 0; i < objects.Length; i ++) {
				ushort X = Util.ReadWord (stream);
				ushort Y = Util.ReadWord (stream);
				ushort offset = Util.ReadWord (stream);
				Util.ReadWord (stream); /* read that last, unused word */

				objects[i] = new ParallaxObject (X, Y, offset);
			}
		}
Beispiel #2
0
        public void ReadFromStream(Stream stream)
        {
            for (int i = 0; i < objects.Length; i++)
            {
                ushort X      = Util.ReadWord(stream);
                ushort Y      = Util.ReadWord(stream);
                ushort offset = Util.ReadWord(stream);
                Util.ReadWord(stream);                  /* read that last, unused word */

                objects[i] = new ParallaxObject(X, Y, offset);
            }
        }