14 lines
285 B
Python
14 lines
285 B
Python
from itertools import count
|
|
|
|
from data.Item import Item
|
|
|
|
|
|
class Order:
|
|
id_counter = count(start=0)
|
|
|
|
def __init__(self, time: int, items: [Item], value: int):
|
|
self.id = next(self.id_counter)
|
|
self.time = time
|
|
self.items = items
|
|
self.value = value
|