Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper generic intellisense for LazyVar #6688

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

4z0t
Copy link
Member

@4z0t 4z0t commented Mar 11, 2025

Description of the proposed changes

Annotations for generic LazyVar. It addresses issues that were appearing when working with generic types of this class.

  • Lazy<T> - common generic for it. Represents object or function.
  • LazyVar<T> - represents only object that has methods Set, SetValue, SetFunction, Destroy and OnDirty.
  • LazyValue<T> - Lazy<T> or T.

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

@4z0t 4z0t requested a review from Hdt80bro March 11, 2025 13:32
@4z0t 4z0t added area: ui Anything to do with the User Interface of the Game type: intellisense labels Mar 11, 2025
@4z0t 4z0t marked this pull request as draft March 12, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui Anything to do with the User Interface of the Game type: intellisense
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant