Skip to content

Make global notify of onremove on a system an error #23

Description

@Kelwan

Having an onremove notify that applies to the whole system doesn't really make sense (as it will have no components to filter with). A system using onremove needs to have at least 1 component without, or an error will throw.

BAD:

system RemoveNotify {
	readwrite NotifyComponentA;
	readonly NotifyComponentB;
	readonly NotifyComponentC;
	notify onremove;
}

GOOD:

system RemoveNotify {
	readwrite NotifyComponentA;
	readonly NotifyComponentC;
	notify {
		onremove NotifyComponentB;
	}
}

Activity

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

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