Add field for associated interactable in dt interactable class

This commit is contained in:
Michał Czekański 2020-05-23 23:48:10 +02:00
parent 05d28c4f5b
commit 93839b3580

View File

@ -7,7 +7,9 @@ from src.entities.Interactable import Interactable
class DTSurvivalInteractable:
DistFromObjectFromPlayer: DistFromObject
def __init__(self, distanceFromPlayer: DistFromObject, classification: SurvivalClassification):
def __init__(self, distanceFromPlayer: DistFromObject, classification: SurvivalClassification,
interactable: Interactable):
self.interactable = interactable
self.classification = classification
self.distanceFromPlayer = distanceFromPlayer
@ -36,4 +38,4 @@ class DTSurvivalInteractable:
else:
return None
return DTSurvivalInteractable(distanceFromPlayer, classification)
return DTSurvivalInteractable(distanceFromPlayer, classification, interactable)