Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

Check [NotNull] in the game studio #662

Open
@stefnotch

Description

The use case would be making sure that every entity has all required components. For example, a player controller component (move the player with the keyboard) needs a camera.

public class PlayerControllerComponent: SyncScript
{
    //Game Studio doesn't seem to check this, which makes it rather useless
    [NotNull]
    public CameraComponent Camera { get; set; }
}

Though, only public properties which can be edited in the game studio should be checked.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions