public DarkPlace(Place currentPlace) { heading = "Too dark to tell"; var NUM_EXITS = Enum.GetNames(typeof(Place.ExitDirections)).Length; exitHeadings = new string[NUM_EXITS]; connectedPlaces = new Place[NUM_EXITS]; connectedPlaceHashes = new int[NUM_EXITS]; Interactables = new string[0]; description = ""; PlaceGridRef = currentPlace.GetOffsetGridRef(Player.me.attemptedMoveDirection); placeHash = PlaceGUID.GetHashCode(); }
//TODO: apparently GetHashCode does not guarentee a unique // key, so we should use something else here. For now it will do. public override int GetHashCode() { return(PlaceGUID.GetHashCode()); }