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

Use constraint type interfaces for IBlackboard? #79

Closed
quabug opened this issue Mar 24, 2020 · 0 comments
Closed

Use constraint type interfaces for IBlackboard? #79

quabug opened this issue Mar 24, 2020 · 0 comments
Labels
question Further information is requested

Comments

@quabug
Copy link
Owner

quabug commented Mar 24, 2020

Is this a clearer and distinct way to declare IBlackboard?

public interface IBlackboard
{
    T GetData<T>() where T : strcut, IComponentData;
    ref T GetDataRef<T>() where T : strcut, IComponentData;
    T GetManagedData<T>() where T : class, IComponentData;
    T GetSharedData<T>() where T : strcut, ISharedComponentData;
    T GetUnityComponent<T>() where T : UnityEngine.Component;
}
@quabug quabug added the question Further information is requested label Mar 25, 2020
@quabug quabug closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant