// Token: 0x060020C4 RID: 8388 RVA: 0x000B38A4 File Offset: 0x000B1CA4 private void deregisterBubble() { if (this.bubble == null) { return; } ClaimManager.deregisterBubble(this.bubble); this.bubble = null; }
// Token: 0x060020C3 RID: 8387 RVA: 0x000B3858 File Offset: 0x000B1C58 private void registerBubble() { if (this.bubble != null) { return; } if (base.isPlant) { return; } this.bubble = ClaimManager.registerBubble(base.transform.position, 32f, this.owner, this.group); }
private bool checkClaims() { if (base.player.movement.isSafe && base.player.movement.isSafeInfo.noBuildables) { if (base.channel.isOwner) { PlayerUI.hint(null, EPlayerMessage.SAFEZONE); } return(false); } if (!ClaimManager.checkCanBuild(this.point, base.channel.owner.playerID.steamID, base.player.quests.groupID, false)) { if (base.channel.isOwner) { PlayerUI.hint(null, EPlayerMessage.CLAIM); } return(false); } if (PlayerClipVolumeUtility.isPointInsideVolume(this.point)) { if (base.channel.isOwner) { PlayerUI.hint(null, EPlayerMessage.BOUNDS); } return(false); } if (!LevelPlayers.checkCanBuild(this.point)) { if (base.channel.isOwner) { PlayerUI.hint(null, EPlayerMessage.SPAWN); } return(false); } if (Dedicator.isDedicated) { this.boundsRotation = Quaternion.Euler(-90f, this.angle + (float)(this.rotate * 90), 0f); } else { this.boundsRotation = this.help.rotation; } if (Physics.OverlapBoxNonAlloc(this.point + this.boundsRotation * this.boundsCenter, this.boundsOverlap, UseableStructure.checkColliders, this.boundsRotation, RayMasks.BLOCK_CHAR_BUILDABLE_OVERLAP, 2) > 0) { if (base.channel.isOwner) { PlayerUI.hint(null, EPlayerMessage.BLOCKED); } return(false); } return(true); }