Add field for associated interactable in dt interactable class
This commit is contained in:
parent
05d28c4f5b
commit
93839b3580
@ -7,7 +7,9 @@ from src.entities.Interactable import Interactable
|
|||||||
class DTSurvivalInteractable:
|
class DTSurvivalInteractable:
|
||||||
DistFromObjectFromPlayer: DistFromObject
|
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.classification = classification
|
||||||
self.distanceFromPlayer = distanceFromPlayer
|
self.distanceFromPlayer = distanceFromPlayer
|
||||||
|
|
||||||
@ -36,4 +38,4 @@ class DTSurvivalInteractable:
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return DTSurvivalInteractable(distanceFromPlayer, classification)
|
return DTSurvivalInteractable(distanceFromPlayer, classification, interactable)
|
||||||
|
Loading…
Reference in New Issue
Block a user