Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- namespace Svelto.ECS
- {
- public readonly struct ExclusiveBuildGroup
- {
- internal ExclusiveBuildGroup(ExclusiveGroupStruct group)
- {
- this.group = group;
- }
-
- public static implicit operator ExclusiveBuildGroup(ExclusiveGroupStruct group)
- {
- return new ExclusiveBuildGroup(group);
- }
-
- public static implicit operator ExclusiveBuildGroup(ExclusiveGroup group)
- {
- return new ExclusiveBuildGroup(group);
- }
-
- public static implicit operator ExclusiveGroupStruct(ExclusiveBuildGroup group)
- {
- return group.group;
- }
-
- public override string ToString()
- {
- return group.ToName();
- }
-
- internal ExclusiveGroupStruct @group { get; }
- public bool isInvalid => group == ExclusiveGroupStruct.Invalid;
- }
- }
|