Beispiel #1
0
        internal void Read(BinaryReader reader)
        {
            byte recipeQueueItemsLength = reader.ReadByte();

            recipeQueueItems = new RecipeQueueItem[recipeQueueItemsLength];
            for (byte i = 0; i < recipeQueueItemsLength; ++i)
            {
                recipeQueueItems[i] = new RecipeQueueItem();
                recipeQueueItems[i].Read(reader);
            }
        }
Beispiel #2
0
        public void Read(BinaryReader reader)
        {
            //num
            int recipeQueueItemsLength = (int)reader.ReadByte();

            recipeQueueItems = new RecipeQueueItem[recipeQueueItemsLength];
            for (int i = 0; i < recipeQueueItemsLength; i++)
            {
                recipeQueueItems[i] = new RecipeQueueItem();
                recipeQueueItems[i].Read(reader);
            }
        }
Beispiel #3
0
        internal void Write(BinaryWriter writer)
        {
            int num = recipeQueueItems.Length;

            writer.Write((byte)num);
            for (int i = 0; i < num; ++i)
            {
                if (recipeQueueItems[i] == null)
                {
                    recipeQueueItems[i] = new RecipeQueueItem();
                }
                recipeQueueItems[i].Write(writer);
            }
        }