コード例 #1
0
    public bool GetPlayerLockPermission(BasePlayer player)
    {
        BaseLock slot = base.GetSlot(BaseEntity.Slot.Lock) as BaseLock;

        if (slot == null)
        {
            return(true);
        }
        return(slot.GetPlayerLockPermission(player));
    }
コード例 #2
0
ファイル: Door.cs プロジェクト: mlgodzilla/Decompiled-Rust
    public bool GetPlayerLockPermission(BasePlayer player)
    {
        BaseLock slot = this.GetSlot(BaseEntity.Slot.Lock) as BaseLock;

        if (Object.op_Equality((Object)slot, (Object)null))
        {
            return(true);
        }
        return(slot.GetPlayerLockPermission(player));
    }