Beispiel #1
0
        public static void AddBlood(List <Blood> bloodStorageList, int time) // Adds blood with expDate dependent on type of Supply
        {
            var newBlood = new Blood(time);

            bloodStorageList.Add(newBlood); // Add blood to the storage
        }
Beispiel #2
0
        public static void AddBlood(List <Blood> bloodStorageList) // returns reference to object Blood
        {
            var newBlood = new Blood(Event.Rnd.Next(1, 11));       // inside Rnd Next there's Expiration Date

            bloodStorageList.Add(newBlood);                        // First blood fill into the storage
        }