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

Check [NotNull] in the game studio #662

@stefnotch

Description

@stefnotch

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.

Metadata

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