跳到主要内容
版本:Next

ReadyM.Api.Multiplayer.ECS.Tags

Structs

AllowOwnershipTransferOnScopeEnterTag

Entities with this component get their ownership transferred to the first player that joins their scope, if there are no other players in that scope when that player joins it.

DisallowOwnershipTransferOnScopeLeaveTag

Entities with this tag are destroyed when their owner leaves their scope. Other entities get their ownership transferred to another player in that scope or to server if there are no players left and that scope is not deleted when all players leave.