Exemplo n.º 1
0
    private bool CanMoveItemsFrom(BaseEntity entity, Item item)
    {
        StorageContainer storageContainer = entity as StorageContainer;

        if (storageContainer && !storageContainer.CanMoveFrom(base.baseEntity, item))
        {
            return(false);
        }
        return(true);
    }
Exemplo n.º 2
0
    private bool CanMoveItemsFrom(BaseEntity entity, Item item)
    {
        StorageContainer storageContainer = entity as StorageContainer;

        return(!Object.op_Implicit((Object)storageContainer) || storageContainer.CanMoveFrom(this.baseEntity, item));
    }