Skip to content

Commit

Permalink
Make InspectableProperty properties immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
alicerunsonfedora committed Oct 20, 2023
1 parent 8e14a12 commit 2501fba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftGodot/Core/InspectableProperty.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public struct InspectableProperty<T> {
public typealias RegisteredPropertyFunction = (T) -> ([Variant]) -> Variant?

/// The host object the property derives from.
public var hostObject: T.Type
public let hostObject: T.Type

/// The getter function that gets the property.
public var getter: RegisteredPropertyFunction
public let getter: RegisteredPropertyFunction

/// The setter function that sets the property.
public var setter: RegisteredPropertyFunction
public let setter: RegisteredPropertyFunction

/// Creates an inspectable property suitable for registration.
public init(_ hostObject: T.Type,
Expand Down

0 comments on commit 2501fba

Please sign in to comment.